question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Handle large image files in an memory-efficient manner

See original GitHub issue
Problem
-------
* Currently, Thumbnailator does not have good support for large image files.

For example, there is no protection against running out of memory, and this 
behavior is completely dependent upon the JVM's memory settings.


Solution
--------
* Support tiled reading of image files, rather than reading the entire files at 
once, as is implemented currently.


Complications
-------------
* Changes to support reading images by tiles will most likely lead to changes 
to the API.

Original issue reported on code.google.com by coobird...@gmail.com on 22 Sep 2010 at 4:28

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:1
  • Comments:16

github_iconTop GitHub Comments

1reaction
svaenscommented, Mar 27, 2019

Dear Chris/ @coobird . I suppose you (like myself) have little time for unpaid projects. Nonetheless, I cross my fingers and hope for some good news that somehow there will be progress on this issue soon. Any updates? Best Regards, Sean

0reactions
redarqascommented, Dec 15, 2016

Any news

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Load large image with memory efficiency - Stack Overflow
I am loading an image onto a button using: theButton.BackgroundImage = Image.FromFile("file.png");. The issue is that my button is 128x128 and ...
Read more >
Loading Large Bitmaps Efficiently - Android Developers
Choose the most appropriate decode method based on your image data source. These methods attempt to allocate memory for the constructed bitmap ...
Read more >
What to Do When Your Data Is Too Big for Your Memory?
Another way to handle large datasets is by chunking them. That is cutting a large dataset into smaller chunks and then processing those...
Read more >
Three Ways of Storing and Accessing Lots of Images in Python
Storing images on disk as .png files; Storing images in lightning memory-mapped databases (LMDB); Storing images in hierarchical data format (HDF5).
Read more >
How to Read a Large File Efficiently with Java - Baeldung
The problem with this approach is that all the file lines are kept in memory – which will quickly lead to OutOfMemoryError if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found