ImageMagick Installation isssue on Windows XP Service pack 2
Posted: 2012-01-18T05:07:24-07:00
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.
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.