Errors while converting tiff

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
lvr123
Posts: 2
Joined: 2015-03-10T12:40:28-07:00
Authentication code: 6789

Errors while converting tiff

Post by lvr123 »

Hello,

IM is not able to read some of my tif files.
I didn't find a way out of this problem.

The command is
convert "x.tif" -quiet -resize 95% png:x.png

The output is
convert.exe: x.tif: Null count for "Tag 34022" (type 1, writecount -3, passcount 1). `_TIFFVSetField' @ error/tiff.c/TIFFErrors/552.
convert.exe: x.tif: Null count for "Tag 34025" (type 1, writecount -3, passcount 1). `_TIFFVSetField' @ error/tiff.c/TIFFErrors/552.
convert.exe: x.tif: Null count for "Tag 34026" (type 1, writecount -3, passcount 1). `_TIFFVSetField' @ error/tiff.c/TIFFErrors/552.
convert.exe: x.tif: Null count for "Tag 34031" (type 1, writecount -3, passcount 1). `_TIFFVSetField' @ error/tiff.c/TIFFErrors/552.

On the command-line it does still produce a png file. However, as I'm using IM through img4java, these errors stuck im4java which throws a org.im4java.core.CommandException.
Same problem with IMDisplay.

I'm using ImageMagick-6.9.0-Q16, x86, on Windows7.

Any idea how to solve this problem ?

Thanks
lvr123
Posts: 2
Joined: 2015-03-10T12:40:28-07:00
Authentication code: 6789

Re: Errors while converting tiff

Post by lvr123 »

Nobody to help me with this problem ?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Errors while converting tiff

Post by snibgo »

Have you tried "tiff:ignore-tags=comma-separate-list-of-tag-IDs"? See http://www.imagemagick.org/script/comma ... php#define

If you upload a sample file, someone might take a look.
snibgo's IM pages: im.snibgo.com
pronaldzito
Posts: 12
Joined: 2013-12-03T15:56:51-07:00
Authentication code: 6789

Re: Errors while converting tiff

Post by pronaldzito »

I believe this may be a bug in 64-bit libtiff where a TIFF IFD contains a data type of long with a value zero. I'm guessing that libtiff may be treating the value as an offset, but that's just a guess and I could be wrong.
I've been looking into this for the last few hours and so far have not found a solution.
Anyone else have better luck with this issue?
Post Reply