EPS to JPEG conversion

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
srikrishnan
Posts: 10
Joined: 2009-06-30T23:14:10-07:00
Authentication code: 8675309

EPS to JPEG conversion

Post by srikrishnan »

Hi All,

I was tried to convert EPS images (which are created using Adobe Illustrator) to JPEG format using ghostscript, it converts successfully with clarity, but if any EPS contains any raster images within that, those are not properly converted by ghostscript, they appears in black in the output jpeg.

So I tried Image magick for this purpose, it converts all the colors irrespective of whether they are vector or rasterized EPS. But the resulted JPEG clarity is not so good, text and images are apearing in blur. Eventhough i tried "+antialias". Is there any option to make the final JPEG with clarity?

Here I have pasted below my two command line syntaxes:

gswin32c -dBATCH -dEPSCrop -dNOPAUSE -sDEVICE#jpeg -dJPEGQ=100 -r600x600 -g$wd\Ex$ht -dTextAlphaBits=4 -sOutputFile#"c:/image.jpeg" "c:/image.eps"

imconvert "c:/image.eps" +antialias -channel RGB -resample "600x600" "c:/image.jpeg"

It would be great help, if anybody solve my problem

FYI: I am using Windows XP Professional, Version: ImageMagick 6.5.3-6 2009-06-12 Q16 OpenMP http://www.imagemagick.org

Thanks in Advance,
Srikrishnan
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: EPS to JPEG conversion

Post by magick »

Add -density 400 before your EPS image name and -resize 25% after the image name (e.g. -density 400 image.ps -resize 25%).
Post Reply