[magick-users] 16 bits pgm file
Anthony Thyssen
anthony at griffith.edu.au
Mon Sep 10 22:04:03 PDT 2007
"Mathieu Malaterre" on wrote...
| Hello,
|
| I am having some issue with a 16bits pgm file. Are those steps
| supposed to work:
|
|
| $ wget http://samples.mplayerhq.hu/jpegls/test16.pgm
| $ identify test16.pgm
| test16.pgm PNM 256x256 PseudoClass 4096c 128kb
| $ convert test16.pgm test16.gray
| $ convert -depth 16 -size 256x256 test16.gray test16-2.pgm
| $ diff test16.pgm test16-2.pgm
| Binary files test16.pgm and test16-2.pgm differ
| $ md5sum test16.pgm test16-2.pgm
| 7a4c2d943148520d2f0da1882b2be204 test16.pgm
| 2da0da03b6eb03a7ecc401c0be70d639 test16-2.pgm
| $ identify test16-2.pgm
| test16-2.pgm PNM 256x256 PseudoClass 65536c 128kb
|
| Technically I'd like to know what is the command line to produce a
| valid 16bits pgm file from a raw grayscale little endian 16bits file.
|
Also the original pgm file is a 12bit depth.
IM will not save 12bit PGM files, not at this time at least
I have put in a proposal for this to be fixed.
Then there is the matter of if it is a compressed (binary) or
uncompressed (text) PGM file.
Anthony Thyssen ( System Programmer ) <A.Thyssen at griffith.edu.au>
-----------------------------------------------------------------------------
To err is human... to really foul up requires the root password.
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
More information about the Magick-users
mailing list