Page 1 of 1

[Solved] Convert jpg to eps, but control quality

Posted: 2008-08-26T12:47:55-07:00
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 ^_^

Re: Convert jpg to eps, but control quality

Posted: 2008-08-26T13:07:50-07:00
by magick
Add the quality option before the format option.

Re: Convert jpg to eps, but control quality

Posted: 2008-08-26T14:13:13-07:00
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.

Re: Convert jpg to eps, but control quality

Posted: 2008-08-26T16:35:23-07:00
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.

Re: Convert jpg to eps, but control quality

Posted: 2008-08-27T11:11:46-07:00
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!

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

Posted: 2016-06-29T18:30:47-07:00
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! =)

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

Posted: 2016-06-29T19:29:05-07:00
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.