> That sounds bass ackwards if you ask me. A command line tool is usually a thin wrapper around a library, for a reason.
It's historically grown. The tool came first, the library was tacked on later.
And yes, it's a mess. That's why the much saner GraphicsMagick was forked off it… in 2002. People just never migrated.