16bit TIFF Files Seem To Be Broken

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.
RedSky
Posts: 12
Joined: 2010-06-29T15:22:43-07:00
Authentication code: 8675308
Location: Las Cruces, New Mexico USA

16bit TIFF Files Seem To Be Broken

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: 16bit TIFF Files Seem To Be Broken

Post 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
RedSky
Posts: 12
Joined: 2010-06-29T15:22:43-07:00
Authentication code: 8675308
Location: Las Cruces, New Mexico USA

Re: 16bit TIFF Files Seem To Be Broken

Post by RedSky »

Thank you for the confirmation. I hope things get back to normal pretty soon.

Mike
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: 16bit TIFF Files Seem To Be Broken

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: 16bit TIFF Files Seem To Be Broken

Post 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.
RedSky
Posts: 12
Joined: 2010-06-29T15:22:43-07:00
Authentication code: 8675308
Location: Las Cruces, New Mexico USA

Re: 16bit TIFF Files Seem To Be Broken

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: 16bit TIFF Files Seem To Be Broken

Post by magick »

Try adding -endian lsb to your command line. Does that help?
RedSky
Posts: 12
Joined: 2010-06-29T15:22:43-07:00
Authentication code: 8675308
Location: Las Cruces, New Mexico USA

Re: 16bit TIFF Files Seem To Be Broken

Post by RedSky »

Nope :( That produced no change. Still doing the same thing.
gnidam
Posts: 4
Joined: 2011-06-15T13:58:27-07:00
Authentication code: 8675308
Location: Vienna

Re: 16bit TIFF Files Seem To Be Broken

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: 16bit TIFF Files Seem To Be Broken

Post 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.
RedSky
Posts: 12
Joined: 2010-06-29T15:22:43-07:00
Authentication code: 8675308
Location: Las Cruces, New Mexico USA

Re: 16bit TIFF Files Seem To Be Broken

Post by RedSky »

Thank You!! I miss my Image Magick!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: 16bit TIFF Files Seem To Be Broken

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: 16bit TIFF Files Seem To Be Broken

Post 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
RedSky
Posts: 12
Joined: 2010-06-29T15:22:43-07:00
Authentication code: 8675308
Location: Las Cruces, New Mexico USA

Re: 16bit TIFF Files Seem To Be Broken

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: 16bit TIFF Files Seem To Be Broken

Post 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.
Last edited by fmw42 on 2012-02-06T21:36:46-07:00, edited 1 time in total.
Post Reply