Converted .eps is blurred

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
Skops
Posts: 4
Joined: 2015-10-11T06:56:37-07:00
Authentication code: 1151

Converted .eps is blurred

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Converted .eps is blurred

Post by snibgo »

The EPS probably contains vector elements, which IM rasterises. Try it with a "-density" setting before reading the eps file.
snibgo's IM pages: im.snibgo.com
Skops
Posts: 4
Joined: 2015-10-11T06:56:37-07:00
Authentication code: 1151

Re: Converted .eps is blurred

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Converted .eps is blurred

Post by snibgo »

I wouldn't. I would choose the density setting that gave the quality I needed, then resize afterwards.
snibgo's IM pages: im.snibgo.com
Skops
Posts: 4
Joined: 2015-10-11T06:56:37-07:00
Authentication code: 1151

Re: Converted .eps is blurred

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Converted .eps is blurred

Post by snibgo »

Why do you want to change it? What does it do that you don't like?
snibgo's IM pages: im.snibgo.com
Skops
Posts: 4
Joined: 2015-10-11T06:56:37-07:00
Authentication code: 1151

Re: Converted .eps is blurred

Post 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
Post Reply