[magick-users] 16 bits pgm file
Mathieu Malaterre
mathieu.malaterre at gmail.com
Mon Sep 10 01:11:48 PDT 2007
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.
Thanks for comments
--
Mathieu
More information about the Magick-users
mailing list