List Info

Thread: Unnecessary 8->16 bit PNM expansion in ImageMagick-6.2.8-4




Unnecessary 8->16 bit PNM expansion in ImageMagick-6.2.8-4
user name
2006-07-21 13:53:23
koyaanisqatsiimagemagick.org wrote:

>> creates an output PNM file that uses 16 bit color
values

>Add -depth 8 to your command line or with MagickWand use
SetImageDepth(image,8).

Thank you for the pointer.  I was wondering what the option
was.  That
is helpful for my situation, although I imagine that using
"-depth 8"
would also cause data to be lost from scanners that actually
produced
scans with bit depths greater than 8 (a fairly common
feature these
days).  So, it would still be best if "convert
-trim" did not promote
the PNM file to 16 bits unnecessarily, so that 8 bit scans
would
get the space savings of 8 bit output and >8 bit scans
would not be
chopped to 8 bit.

By the way, I have submitted a patch to webmasterdjvulibre.org that
allows djvulibre to read 16 bit PNM files, but,
unfortunately,
interpolating the intensity range down to [0..255] because
that
is that djvulibre seems to use internally.

Anyhow, thanks again for your help.

Adam Richter
adamyggdrasil.com
_______________________________________________
Magick-bugs mailing list
Magick-bugsimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-
bugs
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )