IMG2XPM
Image to XPM converter library and command line tool
IMG2XPM is a library and a command line tool that can convert images in most common formats to pure XPM format or a XPM format for a TYP entity entry to be used in a Polish Format Map (PFM) file. PFM is an imput map format used by map compilers such as cGPSmapper and mkgmap.
To get help for command line options, run IMG2XPM without arguments.
For the API of IMG2XPM as a library in your application, refer to the javadoc.zip file.
IMG2XPM has no dependencies other than Java runtime.