Convert 24 bit bmp file to 8 bit bmp file

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
samel_tvom

Convert 24 bit bmp file to 8 bit bmp file

Post 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!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post by magick »

Try this command:
  • convert 24.bmp -colors 256 8.bmp
Post Reply