[Solved] Convert jpg to eps, but control quality

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
Leiko

[Solved] Convert jpg to eps, but control quality

Post by Leiko »

Hello all,

I know this question might have been asked before, and I've gone through most of the answers, but there is one aspect of the conversion that I can't get to work.

I am interested in converting a bunch of jpg images to eps. I do this by:

mogrify -format eps *.jpg -quality 100

As far as I know 100 is the highest for quality, but the resulting eps file is a bit pixelated still compared to the original jpg file. Is there anyway to make it come out with better quality?

(the original jpg image is 72dpi, 288x192 pixels)

Thank you in advance ^_^
Last edited by Leiko on 2008-08-27T11:16:31-07:00, edited 1 time in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Convert jpg to eps, but control quality

Post by magick »

Add the quality option before the format option.
Leiko

Re: Convert jpg to eps, but control quality

Post by Leiko »

Ah thanks. I think I just left off -quality last time I did it, and it seems to be default 100 quality.

The image with -quality 100 still comes out a bit pixilated.

I'm wondering if it's because the original jpg image is only 72 dpi, but I'd think that the eps file would come out at least as good as the jpg file.

If anyone has any ideas i'd appreciate it :)

Thanks again.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert jpg to eps, but control quality

Post by fmw42 »

the default quality, according to the documentation, is 85 not 100.

However, I am not sure why that would do anything as you are converting from jpg to eps. So I would think you need to specify the density you want for the eps. but I am no expert on vector format files such as pdf, eps, ps, etc.
Leiko

Re: Convert jpg to eps, but control quality

Post by Leiko »

Thanks for the help everyone :D

Turns out that
mogrify -quality 100 -format eps *.jpg

works just fine. For some reason when I was opening the eps images with GSView they looked pixelated, but when I took them into LaTeX and compiled they turn out looking good. Hehe who knew!
ajmetz82
Posts: 1
Joined: 2016-06-29T18:26:33-07:00
Authentication code: 1151

Re: [Solved] Convert jpg to eps, but control quality

Post by ajmetz82 »

Haven't tried this conversion yet,
however, when creating an EPS with photoshop, you can embed a low res TIFF in it. I wonder if you were seeing the low res preview, instead of the actual postscript?

Am about to try ImageMagick, and will see how I get on myself, =). I just came across this thread when searching to see if jpg to eps was possible using ImageMagick, =). Great to hear you had success! =)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: [Solved] Convert jpg to eps, but control quality

Post by fmw42 »

Note that raster to vector conversion such as you are doing from jpg to eps is not going to give a small vector file. I think each pixel will become a small circle in the vector output file.
Post Reply