Page 1 of 1

Converted .eps is blurred

Posted: 2015-10-11T07:09:25-07:00
by Skops
Hi,

I'm trying to make a script to automatically increases the canevas of one image, resize another and merge one into another. All my images are in .eps and I would want to have the result in .eps but when I resize (or simply convert) one .eps into .eps, .jpg or .png, the result is blurred or even worst.
When I do it with GIMP, I have a nice result but I try differents commands found on different forums and the result is still the same. (convert SED33.eps -resize -quality 100 2.png for example)

Is it even possible to do what I want to do with IM ? or do I need to use Scheme or Python for this ?

OS : Mac OSX Yosemite
ImageMagick 6.9.1-0
GPL Ghostscript 9.16 (2015-03-30)

Thank you for your answers

Skops

Re: Converted .eps is blurred

Posted: 2015-10-11T07:47:20-07:00
by snibgo
The EPS probably contains vector elements, which IM rasterises. Try it with a "-density" setting before reading the eps file.

Re: Converted .eps is blurred

Posted: 2015-10-11T08:21:29-07:00
by Skops
Following viewtopic.php?t=23272 , I used the "-density" settings.
I want to convert the image from 590*421 to 425*303, how I compute the best value for the density ?

Skops

Re: Converted .eps is blurred

Posted: 2015-10-11T08:35:10-07:00
by snibgo
I wouldn't. I would choose the density setting that gave the quality I needed, then resize afterwards.

Re: Converted .eps is blurred

Posted: 2015-10-11T09:05:24-07:00
by Skops
MMM I think I don't follow you, what should I change in this command :

convert -density 1200 SED33.eps -resize 425x303 -quality 100 essai.eps

?

Skops

Re: Converted .eps is blurred

Posted: 2015-10-11T11:54:55-07:00
by snibgo
Why do you want to change it? What does it do that you don't like?

Re: Converted .eps is blurred

Posted: 2015-10-12T02:58:45-07:00
by Skops
The resulting image was blurried (when it was included in the PDF) but I manage to have a good final image with -density 300 so it is ok now :)

Thanks

Skops