BMP compression with convert
Posted: 2009-07-13T13:31:29-07:00
I am running into something strange when I use convert to change an uncompressed .bmp file into a compressed .bmp file. I use the command:
convert in.bmp -colors 256 out.bmp
which should use the RLE compression that is default for .bmp files. I also tried:
convert in.bmp -colors 256 -compress RLE out.bmp
but in both cases, the compressed image ended up being about twice the size of the original, when it of course should have been smaller. Would anyone be able to explain what's going on? I am using Image Magick 6.5.3 on Ubuntu.
Thanks in advance.
convert in.bmp -colors 256 out.bmp
which should use the RLE compression that is default for .bmp files. I also tried:
convert in.bmp -colors 256 -compress RLE out.bmp
but in both cases, the compressed image ended up being about twice the size of the original, when it of course should have been smaller. Would anyone be able to explain what's going on? I am using Image Magick 6.5.3 on Ubuntu.
Thanks in advance.