16bit greyscale not working on big endian

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
kester
Posts: 3
Joined: 2014-07-16T07:08:42-07:00
Authentication code: 6789

16bit greyscale not working on big endian

Post by kester »

Hello,

16-bit greyscale images (fits or tiff) are not handled properly on Solaris/SPARC which is big endian. On Solaris/x86 (little endian) and Linux/x86 there is no problem. Also 8-bit greyscale images are not affected.

The problem was introduced somewhere between imagemagick 6.7.3.10 and 6.8.8.-7, it is also still present in 6.8.9-2.
Edit: I also found the problem in 6.3.4 Q16. All affected versions were "Q16" versions, the versions that worked, weren't "Q16" versions.

To reproduce the problem:
- view a 16-bit greyscale image (fits or tiff) using display
- convert a a 16-bit greyscale image to a 8-bit format (e. g. as png) and view it

In my case the fits-image is displayed (or converted to) completely black and the tiff-image to grey noise.

Regards

Kester
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: 16bit greyscale not working on big endian

Post by dlemstra »

Can you build the latest beta from source and see if you can reproduce the problem with that version?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
kester
Posts: 3
Joined: 2014-07-16T07:08:42-07:00
Authentication code: 6789

Re: 16bit greyscale not working on big endian

Post by kester »

dlemstra wrote:Can you build the latest beta from source and see if you can reproduce the problem with that version?
I get the same problem with ImageMagick-7.0.0-0~beta20140703.tar.bz2 .
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: 16bit greyscale not working on big endian

Post by dlemstra »

It seems the beta is a bit old. Can you use the source from svn ('https://subversion.imagemagick.org/subv ... geMagick-6')?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
kester
Posts: 3
Joined: 2014-07-16T07:08:42-07:00
Authentication code: 6789

Re: 16bit greyscale not working on big endian

Post by kester »

I checked out the latest SVN version and it still has the problem.

Source: https://subversion.imagemagick.org/subv ... geMagick-6
Last Changed Rev: 16171
Last Changed Date: 2014-07-16 17:24:47 +0200 (Wed, 16 Jul 2014)

Version: ImageMagick 6.8.9-6 Q16 sparc 2014-07-17 http://www.imagemagick.org

EDIT:
building it with ./configure --with-quantum-depth=8, the problem is also there:
Version: ImageMagick 6.8.9-6 Q8 sparc 2014-07-18 http://www.imagemagick.org
phand
Posts: 2
Joined: 2015-11-23T12:42:09-07:00
Authentication code: 1151

Re: 16bit greyscale not working on big endian

Post by phand »

I have the same issue since upgrading from version 6.7.3 to 6.9.0 on Solaris 10. I wonder if ImageMagick has fix this bug.
naveen800
Posts: 35
Joined: 2016-01-07T08:31:48-07:00
Authentication code: 1151

Re: 16bit greyscale not working on big endian

Post by naveen800 »

Even for me we have same issues on Solaris 10 with ImageMagick 6.7.6-5, Not able to figure it out.

1. Installed Libtiff 4.404 under /usr/local/libtiff
2. verified the status whether it was installed but it was not installed
3. Tried to locate the magick-baseconfig.h (for parameter verification MAGICKCORE_HAVE_TIFFISBIGENDIAN) file on /opt/app/opentext/MediaManagement/ImageMagick/include/ImageMagick/magick/ for the black and white tiff issues but couldn't locate.
Post Reply