Graphics, Figures & Tablespng to eps conversion

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
nancyh
Posts: 7
Joined: Tue Mar 05, 2013 2:30 pm

png to eps conversion

Post by nancyh »

Hi,

I found the following code which should convert png to eps

convert filename.png fileman.eps

When I try it I don't get an error message, but neither does the .eps appear in the directory. I do get the following message in the terminal window:

CONVERT commands are now available -- (Version 1.6-3)

Defaults for automatic NDF conversion are set.

Type conhelp for help on CONVERT commands.
Type "showme sun55" to browse the hypertext documentation.

Does anyone know why its not working? I know I could use pdflatex, but I've been told that its better to use an eps image for scaling.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: png to eps conversion

Post by Stefan Kottwitz »

PNG is already not scalable, so a basic conversion to EPS doesn't matter. A different thing would be a vectorization of a PNG image, which is not a simple conversion.

I would use pdfLaTeX with PNG images. If programs can output EPS files, such as graphs, that would be a reason to use EPS but not with bitmap images.

Stefan
LaTeX.org admin
nancyh
Posts: 7
Joined: Tue Mar 05, 2013 2:30 pm

Re: png to eps conversion

Post by nancyh »

Thanks. I think he must have actually have meant me to regenerate the image as eps. Maybe I'll do that in future.
jrwhitbourn
Posts: 1
Joined: Wed Sep 11, 2013 1:40 pm

Re: png to eps conversion

Post by jrwhitbourn »

Hi, I think your problem is a conflict with the Starlink convert utility.
http://star-www.rl.ac.uk/star/bin/convert/convert.icl

If you remove Starlink from your startup script this should solve the problem, well at least till you need Starlink. J
Post Reply