rpatel
11-13-2007, 03:05 PM
In Firefox, printing a page containing just 5 unique png images uses about 211 MB of the system's RAM. With 10 unique png's, it uses about 337 MB of RAM. Both these figures are enough to crash or at least hang some older machines! These are not rare usage scenarios, so I'm surprised why this has never been brought up and addressed.
Does anyone know or can point me in the right direction on how I can decrease the RAM usage when printing on Firefox or workaround it? This could involve HTML, JavaScript, or absolutely anything else.
Note that this only occurs when spooling is turned on, not when printing is set to print directly to the printer.
Also, note that the maximum size of each of the png files I have on these pages is 50 KB.
Finally, my proof of concept page to test this is a very simple page composed of <img> tags wrapped in <div> tags for each image like this:
<html>
...
<div width="100%" height="100%" style='page-break-before: always;'>
<center>
<img align="center" src='Images/121451315f26582f143744515517265f51222e19425f65425c48273164345957613059241626_2.png' width=670 height=867 />
</center>
</div>
... (same block of HTML as above for each image)
</html>
Any suggestions will be greatly appreciated. Thank you.
Does anyone know or can point me in the right direction on how I can decrease the RAM usage when printing on Firefox or workaround it? This could involve HTML, JavaScript, or absolutely anything else.
Note that this only occurs when spooling is turned on, not when printing is set to print directly to the printer.
Also, note that the maximum size of each of the png files I have on these pages is 50 KB.
Finally, my proof of concept page to test this is a very simple page composed of <img> tags wrapped in <div> tags for each image like this:
<html>
...
<div width="100%" height="100%" style='page-break-before: always;'>
<center>
<img align="center" src='Images/121451315f26582f143744515517265f51222e19425f65425c48273164345957613059241626_2.png' width=670 height=867 />
</center>
</div>
... (same block of HTML as above for each image)
</html>
Any suggestions will be greatly appreciated. Thank you.