Need Help! Having issue in converting EPS to JPG

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
jainrakesh

Need Help! Having issue in converting EPS to JPG

Post by jainrakesh »

Hello Friends,

Currently I am working on a project where I need to convert few image files into different format. I am using ImageMagick for same.

I need to convert 3 formats, PSD, AI and EPS to JPG

PSD to JPG
EPS to JPG
AI to JPG

PSD to JPG and AI to JPG works fine, but EPS to JPG does not work. No error on the screen as well.

I am using below code

<?php
exec("/usr/bin/convert psd1.psd[0] -flatten psd1_jpg.jpg");
exec("/usr/bin/convert grindstop.eps eps111_jpg.png");
exec("/usr/bin/convert ai.ai ai1_jpg.jpg");
?>

Above code works perfect in my local server but same code does not work on server for EPS (for PSD and AI it works)

Please assist me where is the issue.

Thanks a lot!

Best Regards,
Rakesh Jain
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Need Help! Having issue in converting EPS to JPG

Post by magick »

Let's see if the problem is specific to your EPS image file. Type
  • convert logo: logo.eps
now
  • convert logo.eps eps111_jpg.png
Does that work? If not, add -verbose to your command line and if that fails try -debug all.
jainrakesh

Re: Need Help! Having issue in converting EPS to JPG

Post by jainrakesh »

Hello

Yes it works for me

i followed both steps and found that logo.eps now can generate .jpg or .png formats
below is the output
http://rightwayservices.org/rakesh/imag ... 11_jpg.jpg

It means i have problem with EPS format or files/images?

Although same EPS images works for me in local server which is window based and imagemagick window version is installed there

is there any way to where i can see what kind of EPS works with ImageMagick?

please advise me

thanks
Rakesh Jain
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Need Help! Having issue in converting EPS to JPG

Post by magick »

ImageMagick delegate EPS rendering to Ghostscript. Its possible Ghostscript does not like a particular EPS image file you have or perhaps you need to upgrade your version of Ghostscript.
jainrakesh

Re: Need Help! Having issue in converting EPS to JPG

Post by jainrakesh »

thanks a lot for your kind support so far, it helped me a lot!

i will talk with my server guy for same. i believe the problem is with version.

is there any way to know which one version of Ghostscript and Image Magick is working on server?

thanks
Rakesh jain
Post Reply