I need to convert a PNG file to an EPS file. Various sources on the Web refer to the
convert command on macOS, but that program does not appear to exist on macOS High Sierra.
How do I get it?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
There is no command/utility named
convert built into macOS.
brew install imagemagick
To install Homebrew, run:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
There used to be a utility in MacOS at:
but it was removed some time ago, probably around Lion.
However, it was just a symlink to the
cupsfilter command (though curiously it presented different flag options).
You can still use the
cupsfilter command to convert to file types that MacOS understands, using their MIME type. The problem is that PostScript and Encapsulated PostScript share the same MIME type (
application/postscript), and cupsfilter only outputs PostScript, rather than EPS.
EPS is a specific type of PS file, conforming to certain syntax conventions, designed for use as portable image files.