Subject: | Compatibility layer for ImageMagick/GraphicsMagick commands |
Please consider adding support for ImageMagick commands.
Since ImageMagick doesn't build cleanly off cpan and GraphicsMagick isn't even availble on cpan, Imager is the only choice for image processing for many of us. Often we prototype with the 'convert' command and get a working solution, but if we want to scale it up and avoid the system calls, things become very difficult.
A lot of the google results for Imager show people wanting to convert their ImageMagick commands (example [1]). But either there's no simple/efficient way to do it or the documentation doesn't make it clear how to. (Example, binarize an image using a given threshold or autothresholding [2]).
I propose adding a compatibilty layer to ImageMagick commands, so one could do something like $imager->magick('-gravity center -crop 36x15+0+0 -fuzz 15% -fill white +opaque black'), and it would parse the commands and convert it to the Imager implementations.
The amount of effort would be non-trivial so this would be good for a community effort. Coordinating on questhub [3] might be a good idea.
A small first step could be adding more recipes to the existing cookbook. There's a lot of questions on stackoverflow and perlmonks that could be added. A community wiki would also be helpful for this.
[1] https://stackoverflow.com/questions/15462404/how-to-trim-images-with-imager
[2] http://www.imagemagick.org/discourse-server/viewtopic.php?p=25468&sid=c3e61c576d40b5bda65cfa729f2a1429#p25468
[3] http://questhub.io/