Closed coooooooorey closed 8 years ago
Hi,
The file is too big and takes a lot of memory. Even paint.net cannot load the image in a 4GB RAM system.
-Ron
OIC Thx. :smile:
Is there any way to avoid crash?
Something like throw a exception or return false?
Hi, forgot to check my Github account due to long vacation.
Since there is only a limited number of exposed plugin API calls, this is not possible in the plugin point of view. You can (possibly) "pre-compute" how much space an image might take by getting the size from option and compare it to your available memory size. Then you can decide if you are still going to load the image or not.
When I load this file, app would crash.
https://drive.google.com/file/d/0BxUO3KDi7ZfydjBhYlJPTURDcjg/view?usp=sharing
How to avoid this?