Where is the convert command in macOS?

Solution 1:

There is no command/utility named convert built into macOS.

convert utility is installed as part of ImageMagick. You can easily install ImageMagick using Homebrew by running:

brew install imagemagick

You can install Homebrew, using the command-line as mentioned here:

  • https://github.com/Homebrew/install/blob/master/README.md#install-homebrew-on-macos-or-linux

Solution 2:

Once installed using @Nimesh Neema's answer you can find the location of the command by running

which convert

Solution 3:

There used to be a utility in MacOS at:

/System/Library/Printers/convert 

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.