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

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
michaeln
Posts: 5
Joined: 2018-04-09T23:57:43-07:00
Authentication code: 1152

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

Post by michaeln » 2018-04-10T00:22:57-07:00

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

snibgo
Posts: 10839
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post by snibgo » 2018-04-10T09:24:12-07:00

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.
snibgo's IM pages: im.snibgo.com

michaeln
Posts: 5
Joined: 2018-04-09T23:57:43-07:00
Authentication code: 1152

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

Post by michaeln » 2018-04-11T01:25:35-07:00

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.

User avatar
fmw42
Posts: 24005
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post by fmw42 » 2018-04-11T08:29:29-07:00

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

michaeln
Posts: 5
Joined: 2018-04-09T23:57:43-07:00
Authentication code: 1152

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

Post by michaeln » 2018-04-12T04:15:00-07:00

Hello,

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

Best regards

Michael

User avatar
fmw42
Posts: 24005
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post by fmw42 » 2018-04-12T09:26:21-07:00

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.

michaeln
Posts: 5
Joined: 2018-04-09T23:57:43-07:00
Authentication code: 1152

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

Post by michaeln » 2018-04-13T00:21:49-07:00

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.

szekelygobe
Posts: 4
Joined: 2018-04-13T04:37:04-07:00
Authentication code: 1152

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

Post by szekelygobe » 2018-04-13T04:49:24-07:00

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 ?

snibgo
Posts: 10839
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post by snibgo » 2018-04-13T05:00:28-07:00

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.
snibgo's IM pages: im.snibgo.com

szekelygobe
Posts: 4
Joined: 2018-04-13T04:37:04-07:00
Authentication code: 1152

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

Post by szekelygobe » 2018-04-13T05:22:19-07:00

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.

User avatar
fmw42
Posts: 24005
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post by fmw42 » 2018-04-13T08:51:19-07:00

I think this issue is being worked on. See https://github.com/ImageMagick/ImageMag ... -381117850

szekelygobe
Posts: 4
Joined: 2018-04-13T04:37:04-07:00
Authentication code: 1152

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

Post by szekelygobe » 2018-04-13T09:45:59-07:00

Yes, tank you ! :)

michaeln
Posts: 5
Joined: 2018-04-09T23:57:43-07:00
Authentication code: 1152

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

Post by michaeln » 2018-04-16T06:26:43-07:00

Hello,

thanks!

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

Post Reply