Page 1 of 1

Errors while converting tiff

Posted: 2015-03-10T13:11:59-07:00
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

Re: Errors while converting tiff

Posted: 2015-03-24T12:25:54-07:00
by lvr123
Nobody to help me with this problem ?

Re: Errors while converting tiff

Posted: 2015-03-24T15:19:47-07:00
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.

Re: Errors while converting tiff

Posted: 2015-06-09T11:34:58-07:00
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?