Set a palette in a Windows BMP file (8 bit) ?
Posted: 2013-03-25T05:38:25-07:00
Referring to previous topic on this matter I have come a bit further.
Thanks to the help of [snibgo].
I am almost there, but would like to have the final step.
What I have so far is the conversion from "Raw" to "header" version of BMP.
I now only need to find out how to insert the palette into the image.
Please see the files here.
My trials have been:
.. this will create a 24 bit type "grayscale" image.
.. this will create a 4 bit type "palette" image.
I would like to create same thing as "good.bmp" which has 3 channel depths, unlike q3_palette. Also it has 256 colors.
In addition to that, I would like to modify the colors() array, which is the palette Windows sees. Either specified directly on the command line, or taken from "good.bmp".
At this moment I have to manually load each image to convert into PSP, then convert, load palette, save.
Hope I asked the question right.
Thanks to the help of [snibgo].
I am almost there, but would like to have the final step.
What I have so far is the conversion from "Raw" to "header" version of BMP.
I now only need to find out how to insert the palette into the image.
Please see the files here.
My trials have been:
Code: Select all
convert -size 300x119 -depth 8 gray:qwerty.raw q3.bmp
Code: Select all
convert -size 300x119 -depth 8 gray:qwerty.raw -type palette q3_palette.bmp
I would like to create same thing as "good.bmp" which has 3 channel depths, unlike q3_palette. Also it has 256 colors.
In addition to that, I would like to modify the colors() array, which is the palette Windows sees. Either specified directly on the command line, or taken from "good.bmp".
At this moment I have to manually load each image to convert into PSP, then convert, load palette, save.
Hope I asked the question right.