Page 1 of 1

Tiff Tag Error

Posted: 2019-06-26T02:30:43-07:00
by schille
OS: Debian 8
IM Version: ImageMagick 7.0.8-34 Q16 x86_64 2019-03-21 https://imagemagick.org
libtiff Version: 4.0.10-4

When I try to convert a TIFF File (I can not post it, because of copyrights) with the following command:

Code: Select all

convert BDE-PERSP.tif zzzzz.jpg
I get the following error:

Code: Select all

 BDE-PERSP.tif: Null count for "Tag 34391" (type 1, writecount -3, passcount 1). `_TIFFVSetField' @ error/tiff.c/TIFFErrors/656.
When I execute the following command, the conversion works just fine:

Code: Select all

convert -define tiff:ignore-tags=34391 BDE-PERSP.tif zzzzz.jpg
I want to note that the image can be decoded just fine by Windows Photo Viewer and Irfan View.

My question is:
Is it possible to automate this conversion to tell ImageMagick to ignore all tags which would lead to an error?
Or do you have other tips how to handle those TIFF Files in an automated process?

Re: Tiff Tag Error

Posted: 2019-07-16T01:22:25-07:00
by schille
Any suggestions?

Re: Tiff Tag Error

Posted: 2019-07-16T04:55:29-07:00
by snibgo
I can only suggest a script. Check for an error, get the tag number, and re-run ignoring that tag.