One of the useful Unix commands I have used is "convert" from ImageMagick. This software survived several upgrades of MacOS, but not the transition to MacOS 15.4 Sequoia. To re-install via MacPorts, one does this following
sudo port selfupdate
sudo port upgrade outdated
sudo port install imagemagick
and this places the Unix line-command "convert" into /opt/local/bin