In Zotonic we have an interface to the command line version of ImageMagick. Works well.
I guess it could be split off into a separate library, if demand is big enough.
There are more z_media_....erl files there, for identifying file, extracting mime type and size, etc. We also have some code for determining the focus point or images (useful when cropping).