Monday, November 07, 2005

squid error maybe solved

I might have solved my squid error Problem today. It seems like i just reached the memory limit of the host, but i would have supposed to get an php error instead.. or an apache error.. but nothing at all is not ok.

I found the calculation you need for imagecreatetruecolor at: http://www.boutell.com/gd/faq.html

Of course, opening truly huge images can cause real memory problems, if several are open at once. 8,000 pixels times 8,000 pixels times four bytes for truecolor equals a walloping 256 megabytes.


So you need 4 bytes per pixel and that meant 26MB just for the source image.. and i have about 32 MB to work with ;-(

No comments: