[nycphp-talk] GD imageCreate
Tim Sailer
sailer at bnl.gov
Mon Sep 9 15:43:33 EDT 2002
On Mon, Sep 09, 2002 at 03:33:59PM -0400, Kayra Otaner wrote:
> Hi,
>
> I'm also using gd library to createa on the fly images for my free counter site. I've observed
> that using fonts (any) is consuming huge amount of cpu and memory. Try to not to use different
> font files and or try to reduce character count in word or sentences.
> Also you may create a bacground image and try to load it instead of creating it also on the fly.
That's what I'm doing, actually. My wife created me the backgroud image,
but in order to get color allocation right, you still have to make a
temp image to do the allocations. It's very frustrating. Making on the fly
graphics with GD seem to use 16 bytes of memory for each pixel in the
inital imageCreate(), so it not only uses lots of CPU, but memory...
There's got to be a better way...
Tim
--
Tim Sailer <sailer at bnl.gov>
Application Services
Information Technology Division
Brookhaven National Laboratory (631) 344-3001
More information about the talk
mailing list