Question: how to create xpm file?
Answer: Click on Image/Merge Visible Layers and click the Merge button. Optionally, click File/Save to save the image in XCF format. Click File/Export As and save the file as an X PixMap image (*. xpm).