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

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
ahmedtamseer
Posts: 5
Joined: 2018-10-12T05:46:40-07:00
Authentication code: 1152

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

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

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