Page 1 of 1

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

Posted: 2012-04-25T16:56:21-07:00
by sendbit
How would I convert some image, such as a .png to a 16bit .bmp with / without dithering?

Thanks

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

Posted: 2012-04-25T17:03:11-07:00
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

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

Posted: 2012-04-26T15:09:59-07:00
by Jason S
ImageMagick doesn't support writing 16 bits/pixel BMP images.

(I do know of another program, that can do that.)

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

Posted: 2012-04-26T18:04:28-07:00
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.

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

Posted: 2012-04-26T21:38:13-07:00
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.