- Code: Select all • Expand view
./imageconverter -palette mypalette.pal -in texture.png -out texture.lmp
I wasn't able to find anything in the SLADE documentation that suggests I could use SLADE to perform this kind of action. I am using Node.js to manage my development environment, so it would be exceptionally helpful to be able to write scripts that can take files output from my design software, convert them, and then move them into my directory structure. I have created utilities that rename sprites and such, but I'd like to avoid having to manually convert my files to the doom graphics format. I am aware that ZDoom can support true color images, but for aesthetic purposes, I'm keeping everything to a strict palette.
EDIT: I should clarify, I am seeking a command line utility that can specifically export either an indexed or non-indexed image to the Doom Patch format.
EDIT2: The first step of converting to an indexed format isn't 100% essential. My editing software does not allow me to export an image with indexed color, but it will allow me to conform an image to a palette (and while designing the images, I'm strictly using colors from my palette.) So, my image outputs have only colors which are found in my palette, but they are not indexed.