warn before opening a very large image file
Submitted by Ari Pollak
From Debian bug report http://bugs.debian.org/421153:
When opening a very large file (e.g. http://imgsrc.hubblesite.org/hu/db/2007/06/images/c/formats/full_jpg.jpg), GIMP will most likely try to create a very large swap file at once, which will usually make the user's desktop unresponsive for a while. The max-new-image-size setting only seems to affect scaling & new images, but not opening existing images.
Surely it should be possible to guesstimate whether a given file will exceeed max-new-image-size? Especially since the size of the file itself will generally be smaller than the amount of memory it will use when opened, depending on the format.
Version: git master