Convert png to eps

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: helmut, XnTriq, xnview

Post Reply
Mads

Convert png to eps

Post by Mads »

How to convert png (or jpg, bmp, gif...) to eps, so
that the eps works in Latex ?

I use (on windows)

nconvert -o file.eps file.png

Using the file.eps in a tex file I get the error:
"Latex error: Cannot dertermine the size of the graphics in file.eps (no BoundingBox)"

Can someone help me ?
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Convert png to eps

Post by helmut »

Mads wrote:...
I use (on windows)

nconvert -o file.eps file.png

Using the file.eps in a tex file I get the error:
"Latex error: Cannot determine the size of the graphics in file.eps (no BoundingBox)"
The file that is generated using your command has the extension .eps, but in fact it is a PNG file. If you open the Properties of file.eps you will see. You would have to specify the format using "-out eps" for example. But even this won't help:

Writing eps files using XnView or nconvert is not possible at the moment, see topic "Convert eps".
Post Reply