
On Mon, 24 Oct 2011 20:57:38 +1100, cory seligman <coryms.luv@gmail.com> wrote:
When I create a bmp file with the same basic resolution, colour depth etc, it fails to display.
Does anyone know of a way to convert an image to bmp format having the same characteristics as a reference image?
It would be worth using the ImageMagick identify command so you know more about the format. If you just need to copy resolution and depth, something like this can be used: convert in.jpg $(identify -format '-resize %wx%h -depth %z' ref.bmp) out.bmp Another aspect is whether the bmp should have a color table ('pseudocolor'). You can force an 8-bit color table using the ImageMagick flag '-colors 256' (at least for certain filetypes such as bmp). If forcing a color table works but the colors come out wrong, the device might already have a built in color table, in which case you would have to remap using a reference color table with all the default colors: convert in.jpg $(identify -format '-resize %wx%h -depth %z' ref.bmp) -remap colortable.bmp out.bmp Glenn