[Image-SIG] reaching memory limits with crop method

Fredrik Lundh fredrik at pythonware.com
Wed Aug 31 17:47:04 CEST 2005


Adam J Smith wrote:

> We are encountering memory errors while processing very large images (over
> 3Gb TIFFs, 17888x45408 px). We are trying to make "tiles" of the image by
> calling PIL's crop method and saving the resulting images.

if you open such a file in PIL, what does the "tile" attribute contain?
can you try the following on your files and post the result?

    >>> im = Image.open("verylargetiff.tif")
    >>> im.mode
    >>> im.size
    >>> im.tile

</F>





More information about the Image-SIG mailing list