Reputation: 7856
This can be very broad, but let me just narrow it down. Assume that
What is the maximum Width x Height I can support ?
If I try to put a 27150
x 20950
image into an <img>
tag Chrome crashes.
So I want to know what the maximum width, height of an Image I can support.
Note: I have gone thru this post but its 8 years old
Edit 1: I am able to load a 160 Mb
4000
x 4000
px file so file size isnt a problem the 27150
x 20950
image is just 7 Mb.
Compression isn't an option for me.
Upvotes: 19
Views: 6324
Reputation: 813
After some testing on my personal machine (Chrome v91.0) using ImageMagik to resize an image a bunch of times, I collected the following results - all dimensions are wxh:
So it seems the total size of the image must be less than 2^29 (539MP)
Upvotes: 6
Reputation: 1999
According to one site I came across, maximum image size in Chrome 4 to 26 and Opera 8 was 8192x8192. Granted that's rather outdated as I'm currently running Chrome 75.
IE 5.5 to 10, FF 19, Opera 9-12 supported (Chrome wasn't specified) will support 16384x16384, which I was able to view a PNG of that size. I attempted 32768x32768 and larger, but it wouldn't display. Browser didn't crash, but all I got was a little white box outline in the center of the page.
I can attempt the larger images from home later to see what happens, as I have substantially more ram on my desktop (if that's a consideration).
Upvotes: 7