Page 1 of 1

convert Tif => PDF Error in 7.0.7-28, not in 7.0.7-0 and 7.0.3-4

Posted: 2018-04-10T00:22:57-07:00
by michaeln
Hello,

i have a problem with the newest versions (7.0.7-28 an 7.0.7-29beta).
With this i can not convert tif files to pdf and have this warnings and errors:
convert.exe test.tif test.pdf
convert.exe: ASCII value for tag "Make" contains null byte in value; value incorrectly truncated during reading due to implementation limitations. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/1000.
convert.exe: ASCII value for tag "Model" contains null byte in value; value incorrectly truncated during reading due to implementation limitations. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/1000.
convert.exe: improper image header `test.tif' @ error/tiff.c/ReadTIFFImage/1737.
convert.exe: no images defined `test.pdf' @ error/convert.c/ConvertImageCommand/3275.

With 7.0.7-0 and 7.0.3-4 it works.
There are only the warnings:
convert.exe test.tif test.pdf
convert.exe: ASCII value for tag "Make" contains null byte in value; value incorrectly truncated during reading due to implementation limitations. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/921.
convert.exe: ASCII value for tag "Model" contains null byte in value; value incorrectly truncated during reading due to implementation limitations. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/921.

Best regards

Michael

Re: convert Tif => PDF Error in 7.0.7-28, not in 7.0.7-0 and 7.0.3-4

Posted: 2018-04-10T09:24:12-07:00
by snibgo
For v7, I suggest you use "magick", not "convert".
michaeln wrote:convert.exe: improper image header `test.tif' @ error/tiff.c/ReadTIFFImage/1737.
So the error is in reading the tiff file. Perhaps the tiff file has an error that wasn't picked up by previous versions of IM or (more likely) libtiff.

I use v7.0.7-28 with tiff files, without encountering that problem.

Does it happen with all tiff files? Only those made by certain software? What does "magick identify" say about the file? Can other software (eg Gimp, viewers) read the file?

If that doesn't help, I suggest you upload it somewhere and provide a link. If it's more than a few MB I won't be able to download it.

Re: convert Tif => PDF Error in 7.0.7-28, not in 7.0.7-0 and 7.0.3-4

Posted: 2018-04-11T01:25:35-07:00
by michaeln
Hello,

thanks you for your fast answer.

Magick identify:
ImageMagick-7.0.7-28>identify.exe test.tif
test.tif[1] TIFF 9340x4517 9340x4517+0+0 1-bit Bilevel Gray 695159B 0.000u 0:00.001
identify.exe: ASCII value for tag "Make" contains null byte in value; value incorrectly truncated during reading due to implementation limitations. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/999.
identify.exe: ASCII value for tag "Model" contains null byte in value; value incorrectly truncated during reading due to implementation limitations. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/999.

ImageMagick-7.0.7-0>identify.exe test.tif
test.tif[1] TIFF 9340x4517 9340x4517+0+0 1-bit Bilevel Gray 695159B 0.031u 0:00.034
identify.exe: ASCII value for tag "Make" contains null byte in value; value incorrectly truncated during reading due to implementation limitations. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/921.
identify.exe: ASCII value for tag "Model" contains null byte in value; value incorrectly truncated during reading due to implementation limitations. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/921.

With other programs there are no problems. I tested with Paint, ACDSEE and Gimp. Gimp reports a warning, too.

This are scaned pictures from a A0-Scanner from OCE.
If i open it in Gimp and save it new, it works.

Re: convert Tif => PDF Error in 7.0.7-28, not in 7.0.7-0 and 7.0.3-4

Posted: 2018-04-11T08:29:29-07:00
by fmw42
Please post one of your TIFF files that fails to some free hosting service that will not change the format and put the URL here

Re: convert Tif => PDF Error in 7.0.7-28, not in 7.0.7-0 and 7.0.3-4

Posted: 2018-04-12T04:15:00-07:00
by michaeln
Hello,

there th file: https://drive.google.com/file/d/1anpgZv ... sp=sharing

Best regards

Michael

Re: convert Tif => PDF Error in 7.0.7-28, not in 7.0.7-0 and 7.0.3-4

Posted: 2018-04-12T09:26:21-07:00
by fmw42
Your TIFF file is improperly formatted. Imagemagick uses libtiff for reading tiff files. So either the file is bad or it is a limitation of libtiff

Code: Select all

identify -verbose test.tif
identify: ASCII value for tag "Make" contains null byte in value; value incorrectly truncated during reading due to implementation limitations. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/912.

identify: ASCII value for tag "Model" contains null byte in value; value incorrectly truncated during reading due to implementation limitations. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/912.

identify: improper image header `test.tif' @ error/tiff.c/ReadTIFFImage/1597.

Re: convert Tif => PDF Error in 7.0.7-28, not in 7.0.7-0 and 7.0.3-4

Posted: 2018-04-13T00:21:49-07:00
by michaeln
But it seems that the limitation is new.
The older versions 7.0.7-0 and 7.0.3-4 don't have this error with the same file.

Re: convert Tif => PDF Error in 7.0.7-28, not in 7.0.7-0 and 7.0.3-4

Posted: 2018-04-13T04:49:24-07:00
by szekelygobe
Hi there!
I have the same problem reading tiff files.
IM version 7.0.7-28 Q16 x86_64 2018-03-25 on Mac / High Sierra

identify -verbose returns :
identify: improper image header `000012331410.TIF' @ error/tiff.c/ReadTIFFImage/1733.

It seems you need to downgrade the libtiff to an older if you'r version is 4.0.9, to 4.0.8.
I can't find a documentation how to do that on a mac.
Can someone help me ?

Re: convert Tif => PDF Error in 7.0.7-28, not in 7.0.7-0 and 7.0.3-4

Posted: 2018-04-13T05:00:28-07:00
by snibgo
IM v7.0.7-28 with libtiff 4.0.9 on Windows 8.1 works fine for me.

Software sometimes tightens up on what errors it accepts, because these are sometimes identified as security vulnerabilities.

Re: convert Tif => PDF Error in 7.0.7-28, not in 7.0.7-0 and 7.0.3-4

Posted: 2018-04-13T05:22:19-07:00
by szekelygobe
There is a problem with some TIFF files, trows an error on reading the tiff files (see above).
For other TIFF files trows no errors, works perfect.
The older libtiff trows no errors.

Re: convert Tif => PDF Error in 7.0.7-28, not in 7.0.7-0 and 7.0.3-4

Posted: 2018-04-13T08:51:19-07:00
by fmw42
I think this issue is being worked on. See https://github.com/ImageMagick/ImageMag ... -381117850

Re: convert Tif => PDF Error in 7.0.7-28, not in 7.0.7-0 and 7.0.3-4

Posted: 2018-04-13T09:45:59-07:00
by szekelygobe
Yes, tank you ! :)

Re: convert Tif => PDF Error in 7.0.7-28, not in 7.0.7-0 and 7.0.3-4

Posted: 2018-04-16T06:26:43-07:00
by michaeln
Hello,

thanks!

With the ImageMagick-7.0.7-29-beta20180415 my problem is solved, too.