Page 1 of 1

convert: Maximum TIFF file size exceeded. `TIFFAppendToStrip' @ error/tiff.c/TIFFErrors/650

Posted: 2018-10-15T23:50:43-07:00
by ahmedtamseer
Hi,

I am running a command (see below) to convert a jpeg image to tiff image by using -resize option.

Code: Select all

convert -verbose -quality 100 -scale 54000 -units PixelsPerInch -density 300x300 -resample 300x300 input.jpeg -resize 54000 output.tif
I ran into an error (see below) after some time. The command gave me 314bytes of an image as an output.

Code: Select all

convert: Maximum TIFF file size exceeded.TIFFAppendToStrip' @ error/tiff.c/TIFFErrors/650.`
If I run the same command (see below) by changing scale and resize value to 28800, gave me 1.2GB of the file.

Code: Select all

convert -verbose -quality 100 -scale 28800 -units PixelsPerInch -density 300x300 -resample 300x300 input.jpeg -resize 28800 output.tif
System Configuration
ImageMagick version: ImageMagick 7.0.8-12 Q16 x86_64 2018-10-05
Environment (Operating system, version and so on): Ubuntu 16.04, 64-bit
Additional Information: input.jpeg of size 15.9 MB

Re: convert: Maximum TIFF file size exceeded. `TIFFAppendToStrip' @ error/tiff.c/TIFFErrors/650

Posted: 2018-10-16T04:26:55-07:00
by snibgo
Try "-define tiff:rows-per-strip=1".

Your command is very strange. You set the density to 300x300, then resample at the same density. Do you expect the resample to do anything?

You scale to a size, then resize to the same size. Do you expect the resize to do anything?