Page 1 of 1

Quality of EPS files processed with Image Magick is poor

Posted: 2014-05-29T04:20:55-07:00
by meenal.joshi
Hi,

I am facing issue with the quality of EPS files processed with ImageMagick.
ImageMagick version : ImageMagick-6.8.8-Q16
GhostScript version: gs9.14
I am using Windows 7 - 64 bit OS

I am converting EPS file to PDF using ImageMagick. My system uploads EPS as Original file and PDF preview is generated from this EPS file using ImageMagick. My system requires that the preview generated preview file dimension should be in the aspect ratio of 1024x786.

Now when the EPS is of smaller dimensions than 1024x768, then "convert.exe" generates low quality quality or distorted pdf.
Following is the command used for conversion
convert "C:\Originals\TestEPSFile.eps" -resize 1024x768 -density 72 -depth 24 "C:\Previews\TestPDFFile.PDF"

Similar issue is seen when EPS file is cropped to EPS file.
Any suggestions on what went wrong on arguments passed? or How I can resolve this issue?

Re: Quality of EPS files processed with Image Magick is poor

Posted: 2014-05-29T04:46:38-07:00
by snibgo
What is in your EPS? If vector data, such as text, then the problem is "-density". 300 may be a better value.

If that doesn't help, put your EPS file somewhere like dropbox.com and paste the link here.

Re: Quality of EPS files processed with Image Magick is poor

Posted: 2014-05-29T05:28:06-07:00
by glennrp
Depth is the number of bits in a color sample within a pixel. You probably want "-depth 8" instead of "-depth 24", although
the poor appearance of your result is more likely due to too-small "density" as has already been suggested by snibgo.

Re: Quality of EPS files processed with Image Magick is poor

Posted: 2014-06-10T20:46:52-07:00
by meenal.joshi
Hi,

My EPS contains vector data. I tried with having density 300 as well as keeping depth 8 but nothing worked for me.
I am getting this issue only for EPS having small width, height than 1024x768.

Re: Quality of EPS files processed with Image Magick is poor

Posted: 2014-06-10T21:10:45-07:00
by fmw42
Did you put -density before the input eps? With vector files the density should come before the vector file. Try


convert -density 300 "C:\Originals\TestEPSFile.eps" -resize 1024x768 -depth 8 "C:\Previews\TestPDFFile.PDF"


IM is not the best tool to convert from one vector format (eps) to another (pdf). IM will rasterize you eps and then imbed it into a vector (pdf) shell. See http://www.imagemagick.org/Usage/formats/#vector

Re: Quality of EPS files processed with Image Magick is poor

Posted: 2014-12-26T10:45:22-07:00
by valentas
If you came here looking how to convert eps to pdf on Linux, the correct way is using the command 'pdftops converted.eps source.pdf' rather than using convert or mogrify. As noted in the last comment ImageMagick converts pdf vector graphics to a raster image.

Re: Quality of EPS files processed with Image Magick is poor

Posted: 2014-12-26T19:31:34-07:00
by snibgo
pdftops is also available from Cygwin for Windows.