Problem with accessing EPS images using JMagick

View: New views
3 Messages — Rating Filter:   Alert me  

Problem with accessing EPS images using JMagick

by naga kumar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

This is Naga and I am new to this group. We are in the process of doing R&D for image validation using JMagick API. We are successfully able to do the validations for JPG, PSD and TIF type images. But we are getting the following error while accessing the EPS (Encapsulated PostScript) type images:

Current File is = C:\SOI\TestImages\SoundDock_Portable_031.eps
java.exe: `%s': %s "gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -
dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=0 "-sDEV
ICE=bmpsep8" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g480x306  "-sOut
putFile=C:/Users/Naga/AppData/Local/Temp/magick-Mddx30zc" "-fC:/Users/Naga/AppDa
ta/Local/Temp/magick-CUDbIAOO" "-fC:/Users/Naga/AppData/Local/Temp/magick-vz-_Rn
LJ".
java.exe: `%s': %s "gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -
dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=0 "-sDEV
ICE=bmpsep8" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g480x306  "-sOut
putFile=C:/Users/Naga/AppData/Local/Temp/magick-Mddx30zc" "-fC:/Users/Naga/AppDa
ta/Local/Temp/magick-CUDbIAOO" "-fC:/Users/Naga/AppData/Local/Temp/magick-vz-_Rn
LJ" -c showpage.
magick.MagickException: Unable to retrieve handle
        at magick.MagickImage.getColorspace(Native Method)
        at ImageValidator.main(ImageValidator.java:48)

I am currently using the following stuff in my program:
  ImageMagick for Windows : ImageMagick-6.3.9-7-Q8-windows-dll.exe
  Jmagick for Windows    : jmagick-win-6.3.9-Q8.zip
  Java Version            : JDK 1.4.2_17
  Windows environment    : Vista

I am really wondering if any one can help me out to resolve this issue. Thanks in advance.

Thanks!
Naga



Shaadi Partner

_______________________________________________
JMagick mailing list
JMagick@...
http://www.yeo.id.au/mailman/listinfo/jmagick
Please ensure that JMagick@... is a recipient when replying.

Re: Problem with accessing EPS images using JMagick

by Bob Friesenhahn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The first thing to check is if ImageMagick's convert is able to deal
with your EPS file:

   convert -verbose C:\SOI\TestImages\SoundDock_Portable_031.eps testfile.jpg

If it similarly fails, then the problem is not in JMagick.
Ghostscript is used to render EPS files.  You did not specify the
Ghostscript version you have installed, but perhaps a different
version may help.  If Ghostscript is not installed at all, that would
certainly explain the cause of the problem.

Bob

On Sun, 16 Mar 2008, naga kumar  wrote:

> Hi All,

This is Naga and I am new to this group. We are in the process of doing R&D for image validation using JMagick API. We are successfully able to do the validations for JPG, PSD and TIF type images. But we are getting the following error while accessing the EPS (Encapsulated PostScript) type images:

Current File is = C:\SOI\TestImages\SoundDock_Portable_031.eps
java.exe: `%s': %s "gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -
dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=0 "-sDEV
ICE=bmpsep8" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g480x306  "-sOut
putFile=C:/Users/Naga/AppData/Local/Temp/magick-Mddx30zc" "-fC:/Users/Naga/AppDa
ta/Local/Temp/magick-CUDbIAOO" "-fC:/Users/Naga/AppData/Local/Temp/magick-vz-_Rn
LJ".
java.exe: `%s': %s "gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -
dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=0 "-sDEV
ICE=bmpsep8" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g480x306  "-sOut
putFile=C:/Users/Naga/AppData/Local/Temp/magick-Mddx30zc" "-fC:/Users/Naga/AppDa
ta/Local/Temp/magick-CUDbIAOO" "-fC:/Users/Naga/AppData/Local/Temp/magick-vz-_Rn
LJ" -c showpage.
magick.MagickException: Unable to retrieve handle
         at magick.MagickImage.getColorspace(Native Method)
         at ImageValidator.main(ImageValidator.java:48)

I am currently using the following stuff in my program:
   ImageMagick for Windows : ImageMagick-6.3.9-7-Q8-windows-dll.exe
   Jmagick for Windows     : jmagick-win-6.3.9-Q8.zip
   Java Version            : JDK 1.4.2_17
   Windows environment     : Vista

I am really wondering if any one can help me out to resolve this issue. Thanks in advance.

Thanks!
Naga

======================================
Bob Friesenhahn
bfriesen@..., http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

_______________________________________________
JMagick mailing list
JMagick@...
http://www.yeo.id.au/mailman/listinfo/jmagick
Please ensure that JMagick@... is a recipient when replying.

Parent Message unknown Re: Problem with accessing EPS images using JMagick

by naga kumar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Bob,

Thanks for the reply. Yes, you are correct. I got the same error while accessing the EPS files thru ImageMaick's command. I don't have Ghostscript in my machine. Let me install it and will try again. Once again thanks for the timing reply.

Thanks!
Naga


On Sun, 16 Mar 2008 Bob Friesenhahn wrote :
>The first thing to check is if ImageMagick's convert is able to deal with your EPS file:
>
>  convert -verbose C:\SOI\TestImages\SoundDock_Portable_031.eps testfile.jpg
>
>If it similarly fails, then the problem is not in JMagick. Ghostscript is used to render EPS files.  You did not specify the Ghostscript version you have installed, but perhaps a different version may help.  If Ghostscript is not installed at all, that would certainly explain the cause of the problem.
>
>Bob
>
>On Sun, 16 Mar 2008, naga kumar  wrote:
>
>>Hi All,
>
>This is Naga and I am new to this group. We are in the process of doing R&D for image validation using JMagick API. We are successfully able to do the validations for JPG, PSD and TIF type images. But we are getting the following error while accessing the EPS (Encapsulated PostScript) type images:
>
>Current File is = C:\SOI\TestImages\SoundDock_Portable_031.eps
>java.exe: `%s': %s "gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -
>dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=0 "-sDEV
>ICE=bmpsep8" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g480x306  "-sOut
>putFile=C:/Users/Naga/AppData/Local/Temp/magick-Mddx30zc" "-fC:/Users/Naga/AppDa
>ta/Local/Temp/magick-CUDbIAOO" "-fC:/Users/Naga/AppData/Local/Temp/magick-vz-_Rn
>LJ".
>java.exe: `%s': %s "gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -
>dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=0 "-sDEV
>ICE=bmpsep8" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g480x306  "-sOut
>putFile=C:/Users/Naga/AppData/Local/Temp/magick-Mddx30zc" "-fC:/Users/Naga/AppDa
>ta/Local/Temp/magick-CUDbIAOO" "-fC:/Users/Naga/AppData/Local/Temp/magick-vz-_Rn
>LJ" -c showpage.
>magick.MagickException: Unable to retrieve handle
>        at magick.MagickImage.getColorspace(Native Method)
>        at ImageValidator.main(ImageValidator.java:48)
>
>I am currently using the following stuff in my program:
>  ImageMagick for Windows : ImageMagick-6.3.9-7-Q8-windows-dll.exe
>  Jmagick for Windows    : jmagick-win-6.3.9-Q8.zip
>  Java Version            : JDK 1.4.2_17
>  Windows environment    : Vista
>
>I am really wondering if any one can help me out to resolve this issue. Thanks in advance.
>
>Thanks!
>Naga
>
>======================================
>Bob Friesenhahn
>bfriesen@..., http://www.simplesystems.org/users/bfriesen/
>GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
>



ICL

_______________________________________________
JMagick mailing list
JMagick@...
http://www.yeo.id.au/mailman/listinfo/jmagick
Please ensure that JMagick@... is a recipient when replying.