Tuesday, March 29, 2011

converting all png files in a directory to eps

I took some screenshots of a web interface I did (screenshots of my browser's window), and in order to attach them into my latex report, I did this code to convert all the files from png to eps.

for FILE in *png ; do
  BASENAME=`basename $FILE .png` ;
  pngtopnm $FILE |pnmtops|ps2eps >$BASENAME.eps ;
done

No comments:

Post a Comment