I have made a simple command line image converter for Pokitto which focuses on simplicity, integration and flexibility (unix style).
- convert automatically .png and .jpg to c++ header file.
- exported pixels formats: rgb565, 8bits indexes, 4bits indexes, 2bits indexes.
- export palette along image data.
How to use
It works as command line with: poki-imconvert [options] [image_file]
Where options are:
- nopal: don’t export the palette.
- format: force the export to a specified format. Possible values are:
- f16: 16bits color (rgb565) per pixel.
- fpal: 256 colors palette (8bits) index per pixel.
If format is not specified as an option, the exported format is automatically deduced from image format:
- 32bits is exported as rgb565.
- indexed with more than 16 color is exported as 8bits index per pixel.
- indexed with less or equal than 16 colors is exported as 4bits index per pixel.
- indexed with less or equel than 4 colors is exported as 2bits index per pixel.
Why command line ?
Some may know, I did an UI based image converter for Arduboy, so why not one for Pokitto?
Because the hardware of Pokitto is not the same (it can output rgb565, has a better screen resolution) and there are TONS of very good softwares which can do pixel art, palette management, etc.
Moreover there is already BMP2POK, so it’s more like an alternative.
As a command line executable, it can be integrated as plugin, run as batch/script file, etc.
That’s all folks
Feedback is welcome!