convert eats hole memory when reversing multipage tiff

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
cakruege

convert eats hole memory when reversing multipage tiff

Post by cakruege »

If I reverse a multi page tiff

Code: Select all

convert -reverse "scan4a 001.tif" "scan4a 001_rev.tif"
than convert eats all of the machines memory (1.6 GB).

scan4a 001.tif is 180 MBs big and has 50 frames, because of the swapping it needs 20 minutes.

With 285 MB it completly fails:

Code: Select all

convert: Memory allocation failed `scan2a 001.tif' @ tiff.c/ReadTIFFImage/929.
convert: missing an image filename `scan2a 001_rev.tif' @ convert.c/ConvertImageCommand/2775.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: convert eats hole memory when reversing multipage tiff

Post by magick »

Not a bug. Try this command:
  • convert -limit area 1mb -reverse "scan4a 001.tif" "scan4a 001_rev.tif"
If that fails, post a URL to your TIFF image so we can inspect it.
Post Reply