@email@example.com Imagemagick is pretty much the UNIX way. It's a set of commandline tools each with its own specific functions and options. Tremendously powerful.
Similar in concept to, variously, ffmpeg (for audio/video), sox (audio), the poppler PDF library, the PBM tools which you're using, mh, etc.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!