ImageMagick and Grails not working

Posted by TripWired on Stack Overflow See other posts from Stack Overflow or by TripWired
Published on 2010-06-04T06:03:34Z Indexed on 2010/06/04 6:09 UTC
Read the original article Hit count: 301

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about grails

Related posts about groovy