ImageMagick is a set of command line image editing tools that that allow resizing, rotating, filtering, bordering, splitting, joining, drawing...
Split a tilemap into individual tiles? Check.
Write a macro to create custom buttons with text? Check.
Batch convert files to another format without launching some heavy app like GIMP? Check.
It's pretty much a command-line photoshop: you name it, it can do it.