ErlyCairo allows generation of PNG images via 2D vector drawing.
Example usage scenarios:
- server side creation of HTML / CSS background images such as gradients, rounded corners, etc.
- dynamic creation of CAPTCHA images
Features:
- OTP server for starting, accessing and stopping the C-node
- bindings for a subset of the cairo 2D graphics functions
- simple demo application
- C source compiles on mac and Ubuntu Linux (cairo library must be installed)
Limitations
- PNG images only. Just for CSS / HTML background images, this is usually enough, if used in conjunction with a hack like http://24ways.org/2007/supersleight-transparent-png-in-ie6. If you need other image formats, take a look at http://code.google.com/p/erlmagic/
ToDo:
- binding ALL cairo functions
- Cairo version compatibility check
- documentation, wiki, more examples