Easy Streaming GraphicsMagick
gmify provides a very simple interface to the GraphicsMagick image processer. It's a thin layer around the wonderful gm package, giving an API that satisfies the most common use case:
;
(If you want just straight-up format conversion, you can omit the third argument.)
For more info on all the things you can do with a GraphicsMagick file, consult the gm package's documentation.
Finally, don't forget to actually install GraphicsMagick on your system before using!