16bpp Image

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
UmerMujtaba
Posts: 2
Joined: 2017-08-09T21:29:16-07:00
Authentication code: 1151

16bpp Image

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: 16bpp Image

Post 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
UmerMujtaba
Posts: 2
Joined: 2017-08-09T21:29:16-07:00
Authentication code: 1151

Re: 16bpp Image

Post by UmerMujtaba »

I am using IM 7 Q16 on Windows platform. Ok let me try these commands.

Thanks
Post Reply