32-bit sample TIF's can't be handled

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
digitalis99
Posts: 19
Joined: 2015-11-16T16:16:38-07:00
Authentication code: 1151

32-bit sample TIF's can't be handled

Post by digitalis99 »

I'm trying to work with some TIFF output images from some newer render apps, and I'm having a bit of trouble. When attempting to run a simple identify -verbose someimage.tif, I get this output at the end:

Code: Select all

identify.exe: Sorry, can not handle images with 32-bit samples. `c:\Users\joe\Desktop\someimage.tif' @ error/tiff.c/TIFFErrors/557.
I'm running the latest IM public Windows binary, 6.9.3-8 Q16 HDRI x64 (static). I'm assuming IM simply can't work with these kinds of files yet, is that correct?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: 32-bit sample TIF's can't be handled

Post by snibgo »

IM happily reads tiff files with 32 (or even 64) bits/channel/pixel. To make effective use of them, you should use Q32 (or Q64), not Q16.

But I doubt that is the problem here. Can you upload a problem tiff and paste the link here?
snibgo's IM pages: im.snibgo.com
digitalis99
Posts: 19
Joined: 2015-11-16T16:16:38-07:00
Authentication code: 1151

Re: 32-bit sample TIF's can't be handled

Post by digitalis99 »

There is a Q32 or Q64??? I don't see any compiled Windows binary listed higher than Q16 on the download page. Does that mean I'd have to compile my own? (Ick)
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: 32-bit sample TIF's can't be handled

Post by snibgo »

Many varieties of IM are not available as pre-built binaries. 4 Q-levels, integer or HDRI, Win32 or Win64, static/dynamic/portable, so that's 48 varieties before considering the delegates.

For most purposes, Q16 (int or HDRI) is all I need. One job (for large displacements maps) needs the precision of Q32.

Building IM on Windows, using Cygwin, is easy. My "Compiling IM with Cygwin" page has the gory details.
snibgo's IM pages: im.snibgo.com
digitalis99
Posts: 19
Joined: 2015-11-16T16:16:38-07:00
Authentication code: 1151

Re: 32-bit sample TIF's can't be handled

Post by digitalis99 »

That's not an option for me, since I'd have to have Cygwin installed and running everywhere I want to run the binary. Anyone know if there are third-party compiled binaries somewhere?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: 32-bit sample TIF's can't be handled

Post by fmw42 »

see http://web.archive.org/web/201109210047 ... /binaries/ for very old ones. Sorry I do not know of any current archives for Windows other than the IM binaries and source files. You could build your own binary from source.
digitalis99
Posts: 19
Joined: 2015-11-16T16:16:38-07:00
Authentication code: 1151

Re: 32-bit sample TIF's can't be handled

Post by digitalis99 »

Ahh...nothing more than a bunch of older Q8 and Q16 stuff there.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: 32-bit sample TIF's can't be handled

Post by fmw42 »

IM 7 has now been release and has Windows binaries for Q16 HDRI. See http://www.imagemagick.org/script/binar ... hp#windows.

Also see TIFF format -defines at http://www.imagemagick.org/script/formats.php and at http://www.imagemagick.org/script/comma ... php#define

In particular, the section on -define quantum:format=type
digitalis99
Posts: 19
Joined: 2015-11-16T16:16:38-07:00
Authentication code: 1151

Re: 32-bit sample TIF's can't be handled

Post by digitalis99 »

So, are you trying to say that I have to specify additional command line switches when I run identify? Doesn't that negate the primary purpose of running identify at all?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: 32-bit sample TIF's can't be handled

Post by snibgo »

As I said earlier:

Can you upload a problem tiff and paste the link here?
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: 32-bit sample TIF's can't be handled

Post by fmw42 »

Just saying to use IM 7 to get a Q16 HDRI install.
digitalis99
Posts: 19
Joined: 2015-11-16T16:16:38-07:00
Authentication code: 1151

Re: 32-bit sample TIF's can't be handled

Post by digitalis99 »

fmw42 wrote:Just saying to use IM 7 to get a Q16 HDRI install.
Tried that, throws the same error message.
snibgo wrote:As I said earlier:

Can you upload a problem tiff and paste the link here?
Yep, give this a shot:

www.kostov.com/IM/32biterror.tif
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: 32-bit sample TIF's can't be handled

Post by snibgo »

In various versions of IM, including Q32 and Q64 HRDI, "identify" is misreading this file, reporting it as "bilevel", with the error:

Code: Select all

identify: Sorry, can not handle images with 32-bit samples. `32biterror.tif' @ error/tiff.c/TIFFErrors/582.
The image shows with no problem in Microsoft Photo Viewer.

A developer needs to look at the file. Perhaps it is corrupt, or contains a feature that IM can't handle.
snibgo's IM pages: im.snibgo.com
memy_007
Posts: 1
Joined: 2016-08-29T09:51:50-07:00
Authentication code: 1151

Re: 32-bit sample TIF's can't be handled

Post by memy_007 »

Hi! I'm new here, I have the same problem and I wonder if you could solve your problem, if you did you tell me how you did it?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: 32-bit sample TIF's can't be handled

Post by snibgo »

@memy_007: upload your problem file and paste your link here.
snibgo's IM pages: im.snibgo.com
Post Reply