Page 1 of 1

Convert png to eps

Posted: Fri Apr 08, 2005 8:30 am
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 ?

Re: Convert png to eps

Posted: Fri Apr 08, 2005 7:28 pm
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".