How to Convert *jpg/png/24bmp/etc/anything to 16bit-bitmap

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
sendbit
Posts: 1
Joined: 2012-04-25T16:52:42-07:00
Authentication code: 13

How to Convert *jpg/png/24bmp/etc/anything to 16bit-bitmap

Post by sendbit »

How would I convert some image, such as a .png to a 16bit .bmp with / without dithering?

Thanks
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to Convert *jpg/png/24bmp/etc/anything to 16bit-bitm

Post by fmw42 »

do you mean 16bits of pseudocolor or 16 bits per RGB(A)? What is the color type of the png?

to get either format above, you need to be on Q16 compiles version of IM (not Q8)

what does your version tell you

convert -version

see
http://www.imagemagick.org/Usage/formats/#bmp

for the former try

convert image.png -type palette BMP3:image.bmp

for the latter try

convert image.png image.bmp
Jason S
Posts: 103
Joined: 2010-12-14T19:42:12-07:00
Authentication code: 8675308

Re: How to Convert *jpg/png/24bmp/etc/anything to 16bit-bitm

Post by Jason S »

ImageMagick doesn't support writing 16 bits/pixel BMP images.

(I do know of another program, that can do that.)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to Convert *jpg/png/24bmp/etc/anything to 16bit-bitm

Post by fmw42 »

Jason S wrote:ImageMagick doesn't support writing 16 bits/pixel BMP images.

(I do know of another program, that can do that.)
I cannot say for sure as I have never worked with bmp, but from the bottom of http://www.imagemagick.org/Usage/formats/#bmp

it says

For comparison, the bmp3: format allows bit depths of 0, 1, 4, 8 ,16, 24 and
32 and has extra fields which specify x and y resolution (in pixels per metre)
and compression of the image data.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How to Convert *jpg/png/24bmp/etc/anything to 16bit-bitm

Post by anthony »

fmw42 wrote:For comparison, the bmp3: format allows bit depths of 0, 1, 4, 8 ,16, 24 and
32 and has extra fields which specify x and y resolution (in pixels per metre)
and compression of the image data.
Or so I am lead to believe. Remember I and not a windows user, and have little need to use BMP format. I can only go by what I discover in this case.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply