Page 1 of 1

16bpp Image

Posted: 2017-08-10T00:52:14-07:00
by UmerMujtaba
Hey,

I am using ImageMagick to convert my images to .pnm format using

Code: Select all

magick convert input.png -colors 65536 output.pnm

and then used a utility given by TI named pnmtoc. this utility can convert .pnm file to .c file. The problem is that I am getting two different color depths in c file for different images. I want to get 16bpp color depth for both images.

One of the image output is 16bpp but for other i am getting 8bpp. I am using same command and same utility for both images but i dont understand why I am getting 8bpp for a certain image.
I think there is difference between two image but didn't get what is it. and how I can get 16bpp for both images?

Thanks

Re: 16bpp Image

Posted: 2017-08-10T00:57:18-07:00
by fmw42
What is your IM version and platform? Is it Q16 compile? The proper syntax for IM 7 is magick without the convert following it. If you do not want dithered colors, then try

Code: Select all

magick input.png +dither -colors 65535 -depth 16 output.pnm
or

Code: Select all

magick PNG24:input.png +dither -colors 65535 -depth 16 output.pnm
or

Code: Select all

magick PNG24:input.png -depth 16 output.pnm

Re: 16bpp Image

Posted: 2017-08-10T21:52:29-07:00
by UmerMujtaba
I am using IM 7 Q16 on Windows platform. Ok let me try these commands.

Thanks