Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: incrediBILL
I decided to maintain a color bar down the left hand side by stretching a one color gif. Lo and behold, Netscape chokes at 6,000 pixels! I had to create two bars with a <br> tag.
This got me thinking -- what other kinds of inherent limits are built into browsers -- maximum file sizes, dimensions, etc. Clearly they must be there.
I haven't turned up any info yet, and would welcome all input.
I read an article which was saying something along the lines that an image stretched to a bigger file size will still take the same resources even though the actual file may be quite small.
It was a while ago and I can't remeber exactly the reasons for it but i think that the browser still needs X amount of RAM to display an image depending on its size in the page NOT its origional size.
anway i could be wrong but at the time it made a lot of sense.
I'll see if I can dig it up
"to actually display an image, the browser must decode it into a bitmap, so the compression makes no difference at this point. Any image of a given pixel size, no matter how simple or complex, requires the same amount of computer memory to display."
"A 42-byte, one-pixel GIF expanded to 640 by 480 pixels would require just as much memory to display as an 800K photographic JPEG of the same dimensions. Think of that before you fill a Web page with one-pixel GIFs expanded to huge sizes. They'll download quickly, but they'll wolf down memory getting onto the screen. "
ref : [builder.com...]
No, it didn't. Not sure why, now, but maybe it's just better at memory use on other elements of the page.
Great article, knighty. I have a few visitor complaints about various pages here and there that I could never figure out -- Now I'm thinking I should ask them about memory, not just browser version and OS.
First, it seems that my own head had a faulty memory. Netscape choked at 8001 pixels high, not 6000 as I first reported. It renders fine at 8000px and then at 8001px it chokes by showing the broken image link icon.
But Explorer just keeps on wailing until I pushed it to 100,000 pixels high. Then it chokes by just spazzing out and randomly repeating images from the top of the page.
So, memory may be part of the story, but there seem to be limits built into the browser code as well, at least on Netscape
This is Explorer 5.0 and Netscape Communicator 4.7. Soon as I can I'm going to try this on another box with lots more memory (this little baby only has 64MB), Netscape 6 and Explorer 6. Maybe check out Opera as well.
Just made a page with a 1 pixel wide gif streched to ONE Million pixels (said in Austin Powers voice) and it worked fine in both explorer 5 (mac) and netscape 4.7 (mac)
pushed it to 2 million and still the same but acted wierd when scrolling.
I have a G4 with 128MB