Page 1 of 1

Error converting tif on CentOS

Posted: 2014-03-19T04:03:07-07:00
by rjlinden
Hello,

When I try to convert my .tif on CentOS it gives an error but does convert the image. However as I am using im4java to convert the file, it fails because of this error.
On my local Windows machine everything is working fine..

From the command line on CentOS:
# identify test.tif

identify: test.tif: unknown field with tag 34864 (0x8830) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/842.
identify: test.tif: unknown field with tag 34866 (0x8832) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/842.
identify: test.tif: unknown field with tag 42033 (0xa431) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/842.
identify: test.tif: unknown field with tag 42034 (0xa432) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/842.
identify: Tag 42034: Rational with zero denominator (num = 0). `test.tif' @ error/tiff.c/TIFFErrors/561.
identify: test.tif: unknown field with tag 42036 (0xa434) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/842.
identify: test.tif: unknown field with tag 42037 (0xa435) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/842.

From the command line on Windows (local machine):

d:\development\dpc\test.tif TIFF 5760x3840 5760x3840+0+0 8-bit sRGB 66.39MB 0.031u 0:00.017
identify.exe: Unknown field with tag 34864 (0x8830) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/838.
identify.exe: Unknown field with tag 34866 (0x8832) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/838.
identify.exe: Unknown field with tag 42033 (0xa431) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/838.
identify.exe: Unknown field with tag 42034 (0xa432) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/838.
identify.exe: Unknown field with tag 42036 (0xa434) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/838.
identify.exe: Unknown field with tag 42037 (0xa435) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/838.

Does anybody know why I'm getting this different behaviour?

Thanks,
Roberto

Re: Error converting tif on CentOS

Posted: 2014-03-19T04:36:35-07:00
by dlemstra
Are you using the same version of ImageMagick on both operating systems?

Re: Error converting tif on CentOS

Posted: 2014-03-19T04:53:22-07:00
by rjlinden
Well.. almost.. :|

CentOS: 6.8.7-4 2013-11-02 Q16
Localhost: 6.8.7-0 2013-09-18 Q16

Re: Error converting tif on CentOS

Posted: 2014-03-19T06:07:40-07:00
by dlemstra
Which version of libtiff is installed on CentOS? Your Windows version uses 4.0.3.

Re: Error converting tif on CentOS

Posted: 2014-03-19T06:19:38-07:00
by rjlinden
3.9.4-10.el6_5

Re: Error converting tif on CentOS

Posted: 2014-03-19T09:45:20-07:00
by fmw42
suggest you upgrade your libtif to at least the same version or higher than on your windows system