Page 1 of 1

ImageMagick Installation isssue on Windows XP Service pack 2

Posted: 2012-01-18T05:07:24-07:00
by venkat584
My machine OS is Windows-XP -Service Pack 2
I did not find correct version of binary Release on Image magick site which suites my machine OS. I have installed default Image Magick ImageMagick-6.7.4-7-Q16-windows-dll.exe binary Release on my machine. tested basic tests like logo "convert logo: logo.gif" , identify logo.gif, imdisplay. works as expected.But I have the following issues. Coud you please help to resolve the issues.

Issue1:
Able to convert png to jpg without any issue in cmd.Trying to convert application/postscript files to jpg in CMD. Able to convert but displaying below message
is this message is expected to come ? does something wrong with Installation ?
Message:
--------

C:\Program Files\ImageMagick-6.7.4-Q16\images>convert 186567.eps 186567.jpg
convert.exe: `%s' (%d) "gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -d
AlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pamcmyk32" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g354x379 "-sOutpu
tFile=C:/Temp/magick-keQrmGmq--0000001" "-fC:/Temp/magick-AV0NWJe8" "-fC:/Temp/magick--XhLKf8Z" @ error/utility.c/System
Command/1896.
convert.exe: `%s' (%d) "gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -d
AlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pamcmyk32" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g354x379 "-sOutpu
tFile=C:/Temp/magick-keQrmGmq--0000001" "-fC:/Temp/magick-AV0NWJe8" "-fC:/Temp/magick--XhLKf8Z" -c showpage @ error/util
ity.c/SystemCommand/1896.
convert.exe: Postscript delegate failed `C:/Temp/magick-mRDHu4lk': No such file or directory @ error/ps.c/ReadPSImage/82
6.
convert.exe: Invalid TIFF directory; tags are not sorted in ascending order. `TIFFReadDirectoryCheckOrder' @ warning/tif
f.c/TIFFWarnings/761.

Issue 2:
when I use the same convert command to convert tiff image to jpg using command < convert filename.tif new-filename.jpg> in CommandLine Process Its giving the below ERROR messages.what could be the issue.I am using the same convert command in Command Line Process in my process. But its giving the Error code 4 = The system cannot open the file.

Could you please do the needful. I am not able to proceed using commandLine process.does Imagemagick is properly installed or do I need to do any configurations.Could you please let me know how test if the image magick properly installed and make to work with Commanf Line Process.


CommandLine Process Error:
-----------------------------

17.01.2012 17:32:14.783 *INFO* [JobHandler: /etc/workflow/instances/2012-01-17/model_460438793910684:/content/dam/5555555.tif/jcr:content/renditions/original] com.day.cq.dam.core.process.CommandLineProcess execute: executing command line [convert C:\DOCUME~1\USERNAME\LOCALS~1\Temp\cqdam1419707892393041772.tmp/5555555.tif -flip C:\Temp\cqdam1419707892393041772.tmp/5555555.flipped.jpg] for asset [/content/dam/5555555.tif].
17.01.2012 17:32:15.987 *ERROR* [JobHandler: /etc/workflow/instances/2012-01-17/model_460438793910684:/content/dam/5555555.tif/jcr:content/renditions/original] com.day.cq.dam.core.process.CommandLineProcess execute: failed to execute command [convert C:\DOCUME~1\USERNAME\LOCALS~1\Temp\cqdam1419707892393041772.tmp/5555555.tif -flip C:\Temp\cqdam1419707892393041772.tmp/5555555.flipped.jpg] for asset [/content/dam/5555555.tif]: org.apache.commons.exec.ExecuteException: Process exited with an error: 4(Exit value: 4)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:346)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:149)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:136)
at com.day.cq.dam.core.process.CommandLineProcess.execute(CommandLineProcess.java:234)
at com.day.cq.workflow.impl.job.HandlerBase.executeProcess(HandlerBase.java:172)
at com.day.cq.workflow.impl.job.JobHandler.process(JobHandler.java:122)
at org.apache.sling.event.jobs.JobUtil$1.run(JobUtil.java:272)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
7.01.2012 17:32:16.050 *INFO* [JobHandler: /etc/workflow/instances/2012-01-17/model_460438793910684:/content/dam/5555555.tif/jcr:content/renditions/original] com.day.cq.workflow.impl.CQWorkflowSession Attempting to complete work item with ID: VolatileWorkItem_node6_etc_workflow_instances_2012-01-17_model_460438793910684
17


Thanks,
Venkat.

Re: ImageMagick Installation isssue on Windows XP Service pa

Posted: 2012-01-28T08:14:42-07:00
by whugemann
I think you just handle IM incorrectly, so these are rather questions instead of bug reports.

In order to read EPS, PS and PDF you have to install Ghostscript too, as IM relies on it as a delegate.

In order to know what's wrong with your other Convert commnd, we would have to know where you placed it and what you typed exactly. If run in a DOS box, you should leave the greater and smaller signs, which would redirect stdin and stdout.

IM runs (almost) perfectly under Windows XP, regardless of the service pack.

Re: ImageMagick Installation isssue on Windows XP Service pa

Posted: 2014-06-05T01:51:28-07:00
by peknu
This problem seems to be AEM/CQ5 specific. If you specify the absolute path to the convert.exe command it will work as expected.

Example: cmd:D:/PROGRA~1/ImageMagick-6.8.9-Q16/convert.exe ${directory}/${filename} -coalesce -resize 480x480...

Regards / Peter