ImageMagick with Grails -


i want use imagemagick in grails application. using following dependencies in buildconfig.groovy

compile('jmagick:jmagick:6.6.9') compile('org.im4java:im4java:1.2.0') 

however when try , run error:

org.im4java.core.commandexception: java.io.ioexception: cannot run program  "convert": error=2, no such file or directory. 

how use imagemagick or jmagick grails without installing directly, missing dependencies?

jmagick , im4java take 2 different approaches using imagemagick. in short, jmagick uses java ini access imagemagick api , im4java calls imagemagick tools. in other words, jmagick bundles imagemagick while im4java not. know, error due imagemagick either not being installed or not being in environment path.

im4java

the 2 don't go together. example, cannot use im4java call out jmagick in order avoid installing imagemagick on computer hosting grails app. use im4java need install imagemagick.

jmagick

because jmagick partly implemented in c, might problematic use in servlet container. make web app non-portable. might work have servlet container provide jmagick compiled platform, , exclude jmagick war file. don't ask me how :)


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -