Changing Image Depth of Channel

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
ahmediscool
Posts: 1
Joined: 2012-02-02T07:45:25-07:00
Authentication code: 8675308

Changing Image Depth of Channel

Post by ahmediscool »

HI,

I want to change an image depth of bitmap for testing purposes. Right now I am trying to get a 2 bit palette image, and a 4444 Hicolor image.

I have a true color bitmap. I used the below command line

convert -depth 2 /media/bitmap/rule.bmp lut2bpp.bmp

then when I used Identify i got this


Image: lut2bpp.bmp
Format: BMP (Microsoft Windows bitmap image)
Class: PseudoClass
Geometry: 720x480
Type: Palette
Endianess: Undefined
Colorspace: RGB
Channel depth:
Red: 8-bits
Green: 8-bits
Blue: 8-bits


It changed it to a palette which is great, how do I get to change channel depth?

How about changing that true color 24 bit image to hi color 4444 image?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Changing Image Depth of Channel

Post by fmw42 »

I know little about BMP images. But see Anthony's notes at http://www.imagemagick.org/Usage/formats/#bmp
Post Reply