Friday, January 11, 2013

Convert PNG/JPG to EPS on a Mac without creating a huge file

The command for converting PNG/JPG to EPS are:
convert temp.png -compress lzw eps2:temp.eps
convert temp.jpg -compress jpeg eps2:temp.eps

The convert command comes from Mac's built-in imagemagick package.

If you type only convert temp.png temp.eps, it's gonna create the EPS file without compression, creating a huge file.