Free Open Source PNG to EPS and JPG to EPS Converter for Windows

Download

Download JPG-PNGtoEPS.zip

Copyright

This software was compiled by RichardSocher and is published under the GNU General License. It uses mostly the nice Sam2p software by Szabó Péter (pts -@- fazekas.hu) (downloaded from http://www.inf.bme.hu/~pts/sam2p/ and recompiled with his consent) and adds a batch file in order to make the conversion from jpg or png files to eps as simple as possible.

How-To

All you need to do to convert png files to eps files is to click on batchConvertAllPngToEps.bat inside windows explorer. This batch script then creates eps files for all files that are in the same folder. If you want to include these in a latex document, just omit the extension:

\includegraphics[width=0.45\textwidth]{pcaSpiral}

then pdfLatex will use the png file and Latex may use eps file for DVI.

Updates

Update: 30.Nov.2008: The new extension .eps is not concatenated anymore but replaces the .png or .jpg extension.

Comments

Add Comment 
Sign as Author 
Enter code:

mnrao?08 August 2010, 15:32

But I get only 1/4 of jpg in eps.

Zrk?01 June 2010, 03:05

Thank you ! It worked well out of the box. I didn't have to look any further on the net to find what I looked for : the 1st link in Google was the good one.

RichardSocher19 January 2010, 11:31

Thanks Assad!

AKE?23 December 2009, 13:39

Thanks for this package.

Here's a simple bat script that users of the package may find useful.

Cheers!

@echo off
:: Assad Ebrahim, 2009-12-23
:: assad - dot - ebrahim - at - mathscitech - dot - org
:: png2eps.bat wrapper script for JPG-PNGtoEPS.zip from Richard Socher (www.socher.org)

:: USAGE:
:: 1. Put this bat file in the directory where you have a png you want to convert.
:: 2. Set INSTALLDIR to point to where you have unpacked JPG-PNGtoEPS.zip
:: 3. Run this bat file in cmd shell with the command:
::       png2bat <filename-without-ext>
::----------------------------------------------------------------------------------------------------

:: USER: set this to point to directory containg sam2p.exe, png22pnm.exe, etc.
set INSTALLDIR=c:totalcmdTeXpng2eps

:: Run app from app directory, referencing files located in current directory
set CURRDIR=%CD%
pushd %INSTALLDIR%
echo Converting: %1.png  --to  %1.eps...
sam2p %CURRDIR%%1.png EPS: %CURRDIR%%1.eps
echo Done!
:: Restore to current directory
popd