Creating large image files with small memory footprint

  • Nikos Chantziaras


    I'm wondering whether it's possible to create very large image files with FreeImage without requiring large amounts of memory. For example, when I use, I am able to create large TIFF files (like a 2GB file with a resolution of 25000x25000) by saving one scanline at a time. For that, I feed the encoder with RGB source data for one scanline at a time. Even though the file is large, total RAM usage doesn't exceed 20MB or so.

    Can I do the same thing with FreeImage? Or does it always load all pixel data into memory (and in my case, that would require several gigabytes and exceed the limitations of many systems.)

  • Mihail Naydenov

    Mihail Naydenov - 2014-01-25

    Individual images (or pages) must fit into RAM. Multi-page tiffs are cached to disk, however.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks