Page 1 of 2

16bit TIFF Files Seem To Be Broken

Posted: 2012-02-04T08:48:32-07:00
by RedSky
I use IM for sharpening and resizing 16bit files from my scanner. I keep IM up to date via Macports on my macbook pro. A couple of days ago Macports did it's usual thing and updated me to:

Version: ImageMagick 6.7.5-0 2012-02-01 Q32 http://www.imagemagick.org
Features: OpenMP OpenCL HDRI

Since that time running any operation on a 16bit TIFF file always produces a big blob of multicolored dots. I've tried commands similar to this:

convert Any_16bit_TIFF_File.tif -unsharp 0 -density 300 -clamp -depth 16 -format tif Any_16bit_TIFF_File1.tif

I've tried each operation individually, and in various combinations. The result is always the same. IM runs the command as it always has but the resulting image file is a big blob of multicolored dots. I have not tested to see if the problem exists with 8bit files.

Re: 16bit TIFF Files Seem To Be Broken

Posted: 2012-02-04T12:17:51-07:00
by fmw42
I can confirm the problem at least in the following case on IM 6.7.5.1 Q16 (non-hdri) Mac OSX Snow Leopard.

this works fine:
convert rose: -depth 16 rose.tiff

these works fine:
convert rose.tiff rose2.tiff
convert rose.tiff -depth 16 rose2.tiff



but these fails with an overall noise like image
convert rose.tiff -sharpen 0x1 rose3.tiff
convert rose.tiff -blur 0x1 rose4.tiff

Re: 16bit TIFF Files Seem To Be Broken

Posted: 2012-02-04T14:10:03-07:00
by RedSky
Thank you for the confirmation. I hope things get back to normal pretty soon.

Mike

Re: 16bit TIFF Files Seem To Be Broken

Posted: 2012-02-04T14:22:36-07:00
by fmw42
RedSky wrote:Thank you for the confirmation. I hope things get back to normal pretty soon.

Mike

I am sure they will once the IM developers verify the issue.

Fred

Re: 16bit TIFF Files Seem To Be Broken

Posted: 2012-02-05T13:35:52-07:00
by magick
We cannot reproduce this problem, at least not with ImageMagick-6.7.5-2 (available later this evening). We tried under Linux, Windows, and Mac OS X Lion. If the problem persists with ImageMagick-6.7.5-2, perhaps its isolated to the Power PC chip.

Re: 16bit TIFF Files Seem To Be Broken

Posted: 2012-02-05T15:28:17-07:00
by RedSky
I'm running OSX Snow Leopard 10.6.8 on a 32bit Intel processor. IM has been working well on this machine up until the last update and I have become quite dependent on your software. I hope you can reproduce the problem now.

Thanks
Mike

Re: 16bit TIFF Files Seem To Be Broken

Posted: 2012-02-05T16:25:25-07:00
by magick
Try adding -endian lsb to your command line. Does that help?

Re: 16bit TIFF Files Seem To Be Broken

Posted: 2012-02-05T18:38:25-07:00
by RedSky
Nope :( That produced no change. Still doing the same thing.

Re: 16bit TIFF Files Seem To Be Broken

Posted: 2012-02-06T05:09:35-07:00
by gnidam
Same problem here with 16-bit TIFFs (garbled output for above rose3.tiff and rose4.tiff)
on Arch Linux (64bit):
Version: ImageMagick 6.7.5-2 2012-02-06 Q16
Features: OpenMP HDRI

Problems seem to be starting from version 6.7.4.7 onwards,
6.7.4.6 seems fine...

Thx! Martin

Re: 16bit TIFF Files Seem To Be Broken

Posted: 2012-02-06T06:49:19-07:00
by magick
We can reproduce the problem you reported and have a patch. Look for it in ImageMagick 6.7.5-3 available within a day or two. Thanks.

Re: 16bit TIFF Files Seem To Be Broken

Posted: 2012-02-06T07:01:47-07:00
by RedSky
Thank You!! I miss my Image Magick!

Re: 16bit TIFF Files Seem To Be Broken

Posted: 2012-02-06T07:30:44-07:00
by magick
Note, we'll release ImageMagick 6.7.5-3 with the patch today but the Windows binaries will be ImageMagick 6.7.5-2 until we get a chance to update them perhaps sometime tomorrow.

Re: 16bit TIFF Files Seem To Be Broken

Posted: 2012-02-06T11:58:52-07:00
by fmw42
These work correctly now for me on IM 6.7.5.3 Q16 Mac OSX Snow Leopard INTEL Mac Mini


convert rose: -depth 16 rose.tiff

convert rose.tiff -depth 16 rose2.tiff

convert rose.tiff -sharpen 0x1 rose3.tiff

convert rose.tiff -blur 0x1 rose4.tiff


Fred

Re: 16bit TIFF Files Seem To Be Broken

Posted: 2012-02-06T18:28:42-07:00
by RedSky
I think there may be a delay before I can install the update via Macports. Package installers are really great systems but sometimes you have to wait a little longer to gain access to updates. I will report my results as soon as I can.

Mike

Re: 16bit TIFF Files Seem To Be Broken

Posted: 2012-02-06T18:38:13-07:00
by fmw42
RedSky wrote:I think there may be a delay before I can install the update via Macports. Package installers are really great systems but sometimes you have to wait a little longer to gain access to updates. I will report my results as soon as I can.

Mike
It is possible to install all your delegates via MacPorts, but install IM from source in its usual place. You have to make some adjustments to your ./configure command. I do that so that I can easily install my delegates, but keep up with the latest release of IM.

You probably can also install IM from source into /opt where Mac Ports install all its code, but I have not done that, so cannot advise on that.