ximtoppm

Convert a XIM file to a PPM image. More information: https://netpbm.sourceforge.net/doc/ximtoppm.html.

ximtoppm path/to/input_file.xim > path/to/output_file.ppm

ximtoppm --alphaout path/to/alpha_file.pbm path/to/input_file.xim > path/to/output_file.ppm