convert 14 bit ppm to 8 bit ppm using truncation

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
nachumk
Posts: 1
Joined: 2018-01-23T15:55:44-07:00
Authentication code: 1152

convert 14 bit ppm to 8 bit ppm using truncation

Post by nachumk »

Is there a way to convert a 14 bit ppm to an 8 bit ppm without rounding. I have noticed that the value 16320 converts to 254 instead of 255.
Thanks,
Nachum
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert 14 bit ppm to 8 bit ppm using truncation

Post by fmw42 »

What is your exact command line? What is your IM version and platform?

See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at http://www.imagemagick.org/discourse-se ... f=1&t=9620

For novices, see

http://www.imagemagick.org/discourse-se ... f=1&t=9620
http://www.imagemagick.org/script/comma ... essing.php
http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/
Post Reply