Re: [PROPOSAL] Package 'ImageText'
| From: | Pierre-Alain Joye | Date: | Sat, 11 Oct 2003 11:03:57 +0000 |
| Subject: | Re: [PROPOSAL] Package 'ImageText' | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-22585@lists.php.net to get a copy of this message | ||
On Sat, 11 Oct 2003 00:14:52 +0200
"Stefan Neufeind" <stefan@neufeind.net> wrote:
> Hmm - you should consider using certain alpha-values for the shadows.
> GD2 has support for this.
Alpha? Alpha can be used to draw the shadow, but the shadow itself need
more than only an alpha channel to be drawn :-)
> There are two things on my mind:
> a) First I'd like to propose writing text from left-to-right or
> easily from top-to-down (which should be doable).
> b) You can draw text onto a new GD2-canvas, and rotate it by an
> arbitrary angle using:
> http://de3.php.net/manual/en/function.imagerotate.php
> afaik. And using a transparent background for the newly created gd2-
> canvas it might be doable to paste that text over the original image,
> right? Haven't tried, but should work.
I do not like this idea. The 2st reason is FT2 already support rotated
text draw. Drawing hor/ver text and then rotate them gives a lower
quality than using directly the native FT2 functions. Btw, I wrote the
imagerotate function, so it's not like I do not know it ;-)
> Hmm - is saving and outputting at the same time used often? Pierre,
> you mean for caching an image? Why wouldn't you just write it into a
> variable and save / output it? Because files might get too large?
I do it always. Regenerate the cache and output it directly. The next
request get the cached data. Btw, with GD2 it's only a lazyness
function, nothing else (plus the cool auto headers).
> Hmm - maybe, well okay. I hoped that Tobias might come up with a gd-
> util-class ... If he plans to integrate it into a gd-utility-class
> later then maybe we shouldn't consider a Image_Text-release?
A Image_Text package is useful as a standalone package, as said. I doubt
adding a dependency for this kind of tasks is required and even a good
thing (TM).
hth
pierre