Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

memory and gd library

$
0
0
Hello

I have recently been working with gd library as part of an image upload system. I noticed that one of my scripts was failing due to exceeding the available memory.

Anyway researching this I discovered that gd library can be quite memory hungry and the pixel width height of even a small image can require a lot of memory - even when the file size is quite low.

So my question is how do really big sites deal with this? If u have a high volume upload form for instance I could imagine the drain in memory being quite massive.

So do they just throw hardware at it or are there more efficient image libraries than gd?

Incidentally I corrected the memory issue by changing the ini setting for the script. Just in case anyone has that problem.

Viewing all articles
Browse latest Browse all 13200

Trending Articles