Converting image to .EPS on Mac

I needed to convert a folder of around 25 .png files to .eps.

TLDR: use imagemagick.

You can install with brew: brew install imagemagick

This installs a command convert.

for a single file: convert image.png image.eps works!

For multiple files, put them in a folder, make that folder your current directory, and run

for FILE in $(ls)
do
convert $FILE {$FILE%png}eps
done

Really this works even if have Windows or Linux, but I’m putting Mac in the title because I got very frustrated with how long it took me to discover this solution.

Leave a comment