Yes, I'm sure you could find a library for each one of them.
For example
But finding a library which does those 4, nothing more, nothing less will be hard work. For the simple reason that as soon as a library supports more than one format, the natural tendency for it is to support as many as possible (now we're back to ImageMagic).
The next problem you face is making sure that suitable libraries exist for your current/future operating system and compiler.
Also, with 4 different libraries, you're going to have 4 different APIs, with 4 different ideas as to what "a pixel" is. At least with IM you can just open the file and get a consistent look and feel from a programming point of view.
Next, are 4 file formats likely to become 5 or more formats in the future? If there is any chance of this, then go with IM (you should be already done). If not, you'll have quite a lot of work to add a new library, a new pixel format and so on.
I suppose it all boils down to where you want to invest your time.
--
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.