Tiff Tag Error

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
schille
Posts: 13
Joined: 2017-04-26T07:08:27-07:00
Authentication code: 1151

Tiff Tag Error

Post 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?
schille
Posts: 13
Joined: 2017-04-26T07:08:27-07:00
Authentication code: 1151

Re: Tiff Tag Error

Post by schille »

Any suggestions?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Tiff Tag Error

Post by snibgo »

I can only suggest a script. Check for an error, get the tag number, and re-run ignoring that tag.
snibgo's IM pages: im.snibgo.com
Post Reply