How to read image lazy?

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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: How to read image lazy?

Post by magick »

  • My image is very big and doesn't fit in memory. I want to read and process it by parts. Is there any way to do it?
Several. You can read the image exclusively from disk:
  • convert -limit area 1 bigassimage.tif image.jpg
Of if its raw you can crop part of the image are read time:
  • convert -size 32000x32000 'image.rgb[1000x1000+100+100]' image.png
Or use the stream program. See http://www.imagemagick.org/Usage/files/#massive.
Post Reply