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:
Post a Comment