I'm trying to have ImageMagick run from grails to convert some images when I run the command to make an image nothing happens. I get no errors, no information returned nothing at all. I've tried running other commands like touch and ps ux just to see if they work and they all work fine. It just seems like the imagemagick commands are getting lost and I''m not sure what to do. Here is the code I've been working with.
String command = CH.config.ImageMagickPath + "/convert -size 40x20 xc:red xc:blue -append -rotate 90 append_rotate.gif"
println command
command.execute()
CH.config.ImageMagickPath is set up to where imagemagick/bin is. I've taken what is shown in
println command
and run it in a terminal and it works fine. Is there any reason why I can't get IM to work from grails?
Okay I used just java to code it and now i get this error:
dyld: Library not loaded: /ImageMagick-6.6.1/lib/libMagickCore.3.dylib Referenced from: /Library/ImageMagick/bin/convert Reason: image not found