Binary RPMs of ImageMagick were built with the unusual
option which makes ImageMagic use 16 bits per Red, Green and
Blue channels (48 bits all together) rather then the usual 8
bits per channel (24 bits all together).
This doesn't affect ImageMagic tools in any way but affects
the ability of other image processing tools included with
5.1 (and 5.2) distribution to process files produced by
ImageMagick utilities. In particular, none of the netpbm
tools included as part of the libgr package can process pnm
files produced by ImageMagick tools. Any proprietary
software written to use libppm fails to read ppm files
produced by ImageMagick tools. Since most image processing
utilities use the 8-bits-per-channel standard I think that
ImageMagic binaries should be recompiled to use the same
All that needs to be changed is the following line from
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr/X11R6 \
--enable-shared --enable-16bit-pixel \
--with-perl --with-x $RPM_ARCH-redhat-linux
Remove "--enable-16bit-pixel" option from compilation
Your suggestion has been passed on to a developer for further review.
I agree that it is a bug.
I have fixed it in ImageMagick-4.2.2-3