Bug 2438 - Fax4Decode: Bad code word error encountered but output image is still generated
: Fax4Decode: Bad code word error encountered but output image is still generated
Status: RESOLVED LATER
: libtiff
default
: unspecified
: PC Windows XP
: P2 normal
: ---
Assigned To:
:
:
: migrated_to_gitlab
:
:
  Show dependency treegraph
 
Reported: 2013-05-14 22:02 by
Modified: 2019-10-01 14:19 (History)


Attachments
Sample TIFF (216.43 KB, image/tiff)
2013-05-14 22:21, tiuser1234@gmail.com
Details


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2013-05-14 22:02:44
Hello,

I have several TIFFs that we need to convert to PNG and I'm using imagemagick
as a commandline tool in the backend.

The problem is that ImageMagick is experiencing an error during conversion with
some of the tiffs (http://www.2shared.com/complete/vnb96t_9/error.html).
convert.exe: Unknown field with tag 292 (0x124) encountered.
`TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/824.
convert.exe: Bad code word at line 5151 of strip 0 (x 3744). `Fax4Decode' @
error/tiff.c/TIFFErrors/562.

However, the TIFF can be viewed properly in the IMDisplay and other TIFF
viewers and identify.exe doesn't encounter the error.
The PNG image is actually generated even though the above error is encountered
however my program checks the error status which will be set to non-zero and
the program will mark the conversion as failed.

From my initial investigation, this seems an error related to the compression
used in TIFF (and I'm thinking that the underlying libtiff is throwing this).
I'm not sure if this bug is related
(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=630042) Though I can't find a
post with the exact error as mine.

Can someone advise the cause and if the error can be ignored and if imagemagick
can handle or ignore the error?

I can ignore the above error via handling in my program and be satisfied with
the PNG but I'm reluctant as I do not really know the exact cause of this error
and it seems like the error message used is a general one (can i use
"Fax4Decode' @ error/tiff.c/TIFFErrors/562" as the specific error indicator so
I can ignore it?).

Tested with: Windows XP SP2, ImageMagick-6.8.5-6 (portable version)

Thanks
------- Comment #1 From 2013-05-14 22:13:19 -------
It is going to be difficult to do anything meaningful about this without a file
demonstrating the issue.
------- Comment #2 From 2013-05-14 22:21:56 -------
Created an attachment (id=505) [details]
Sample TIFF
------- Comment #3 From 2013-05-14 22:23:40 -------
(In reply to comment #1)
> It is going to be difficult to do anything meaningful about this without a file
> demonstrating the issue.

The file download link is in the link in the description so didn't attach the
file. Though I've attached the file now. Thanks
------- Comment #4 From 2019-10-01 14:19:54 -------
Bugzilla is no longer used for tracking libtiff issues. Remaining open tickets,
such as this one, have been migrated to the libtiff GitLab instance at
https://gitlab.com/libtiff/libtiff/issues .

The migrated tickets have their summary prefixed with [BZ#XXXX] where XXXX is
the initial Bugzilla issue number.