Graphics, Figures & Tables ⇒ Efficient jpg/png to eps conversion ?
Efficient jpg/png to eps conversion ?
My question is:
What is the most efficient way to convert jpg/png files to eps? efficient in the sense of the smallest eps output file size.
I have tried two ways but I got the eps size very large with respect to the jpg file.
For example, the attached jpg image has a size of 62.4 KB.
The first method is to use a postscript printer, and the output size was 1.66 MB !!
The second method is to use Adobe Acrobat to convert jpg to pdf then to eps, the output file size was 258 KB which is better but still large.
so do you have more efficient ways for conversion?
- Attachments
-
- amazing.jpg (62.48 KiB) Viewed 39022 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Efficient jpg/png to eps conversion ?
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Efficient jpg/png to eps conversion ?
and I need to include some JPG/PNG images in the same document
Best Regards,
M.A
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Efficient jpg/png to eps conversion ?
Use the auto-pst-pdf package to make PSTricks possible with pdflatex. Take a close look at the package manual. There you will find all important instructions to get things work. Note that this will extend the compilation time because there are several auxiliary calls necessary.M.A wrote:I use latex.exe because of PSTricks codes which doesn't work with pdflatex and I need to include some JPG/PNG images in the same document […]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Efficient jpg/png to eps conversion ?
but I still prefer to use latex.exe. Furthermore, PStricks isn't the only package that doesn't work with pdflatex, there is for example powerdot and others.
so I would like to know the best way for converting jpg to eps.
Regards,
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Efficient jpg/png to eps conversion ?
Of course the final choice is up to you. I can only give advice and introduce methods to avoid a detour (but I don't have to). If someone is resistant to advice, I can't change that. But perhaps you can explain to me why latex is so preferable from your point of view.M.A wrote:[…] but I still prefer to use latex.exe and I would like a better for converting jpg to eps. […]
You only should know that converting photos from JPG or PNG will result in a loss of quality and a document blown up in its size. EPS is a vector based format and made for other types of pictures. Even if you convert your image files, you will never benefit from the vector character of that format. You will always have a pixel based image file.
Supplement:
You should have given this important information right at the beginning.M.A. wrote:[…] Furthermore, PStricks isn't the only package that doesn't work with pdflatex, there is for example powerdot and others. […]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Efficient jpg/png to eps conversion ?
However, still I didn't get an answer for my original question

N.B. I modified my last post before you reply, sorry for the inconvenience.
Regards,
Efficient jpg/png to eps conversion ?
Code: Select all
convert file.jpg eps3:file.eps
Tomek
Re: Efficient jpg/png to eps conversion ?
(i)print the picture by adobe pdf printer
(ii) select the picture in the pdf file and then print by adobe ps printer
(iii) practise the function of ps-eps by the gsviewer
you probably end up a eps file ca. 100k.
I am using latex-ps-pdf all the time, i understand your aspiration to a easy way to making eps file. there are two options:
1) consider the admin's advice to use pdflatex
2) try to use some softwares with the functionality to transferring the picture formats, presumably the proposed imagemag will do the trick.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Efficient jpg/png to eps conversion ?
This option is not considerable. The used powerdot class relies on pstricks.spiegboy wrote:[...] 1) consider the admin's advice to use pdflatex [...]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10