First post, by robertmo
- Rank
- l33t++
i wonder why big pictures don't display for me in any browser https://s3.amazonaws.com/fredbenenson/top1k.jpg
i wonder why big pictures don't display for me in any browser https://s3.amazonaws.com/fredbenenson/top1k.jpg
Well, the JPEG is 35MB and 32,000 x 27,245 pixels. Uncompressed this would need about 2.5GB at 24bpp. I suppose no browser allocates that much RAM for a single image, and on a 32bit platform a process won't even have a big enough address space. If I try to open it in XNView I get a "not enough memory" message (system has 8GB).
The image could be considered a DoS attack.
Firefox tells me that the image contains errors, though the generic error message is all it shows so it's unclear what the errors might be (or if it's just choking on the large file).
Irfanview eats some 640MB but otherwise does not seem to have major problems with the file. Windows 'Preview' on the other hand fails to load the file, leaving hardly any free memory for my 6GB system...