Page 1 of 1

Convert 24 bit bmp file to 8 bit bmp file

Posted: 2009-09-18T07:24:54-07:00
by samel_tvom
Hello,

I am working on a project in school where we will output a picture to a VGA monitor using an fpga, spartan 3e. Spartan 3e only has 8 bit RGB information (3 bits for red, 3 for green and 2 for blue). So I was wondering if you know how to convert a bmp file with 24 bit in depth to a bmp file with 8 bit in depth?

Otherwise I have to code my own converter and that takes time :(

Thanks!

Re: Convert 24 bit bmp file to 8 bit bmp file

Posted: 2009-09-18T08:18:35-07:00
by magick
Try this command:
  • convert 24.bmp -colors 256 8.bmp