[development] Drupal 5.0 Theme - v2

Khalid B kb at 2bits.com
Sat Sep 30 16:12:13 UTC 2006

On 9/29/06, Chris Johnson <chris at tinpixel.com> wrote:
> > Regarding rounded corners, the jquery plugin and such...
> >
> > The jquery module works by inserting lots of elements styled in some magical
> > way that produces the roundedness.  After those elements are inserted, its
> > not so different from what you've added to your markup.  Depending on the
> > radius of the round, it inserts a lot more elements than your 4 or 5.
> Wild and crazy idea #37:
> Why not generate the rounded corners, anti-aliased even, as images created on
> the fly?  If GD is compiled in, use that.  If not, how hard can it be to write
> the algorithm in fine-tuned PHP code?  It can be done in all integer math,
> although that's probably not the slow part of doing this.

This would be a waste of CPU cycles me thinks for every request.

It would be better (resource wise) to generate that off line and add the image
to the theme without that overhead.

Think of those on shared hosting ...

More information about the development mailing list