On Sat, 02 Apr 2005 11:24:18 +0200
Jonas Smedegaard <[EMAIL PROTECTED]> wrote:

> >>But why not take the bundled GD and create a new package
> >>(php4-bundled-gd).
> > 
> > Because that would still mean carrying around two copies of the same
> > library, which is still a burden on the security team.  If you think
> > Debian needs to be shipping a different libgd version, please talk
> > to the libgd2 maintainer.
> 
> Can you provide me a patch implementing the imagerotate() function? I
> can then suggest upstream to adopt the improvement. Or you can do so
> directly if you like (upstream doesn't bit, to my knowledge ;-) ).
> 

Sorry for the very late reply. First I must mention that my programming
skills isn't adequate for me to port/implement the imagerotate() in
libgd. I wish I could thou. =)

I've done some research and I've found gdImageCopyRotated() in libgd
[1], but it does not seem to be accessible within PHP [2]. Why? If I
have understood this correctly, PHP is using libgd2-xpm instead of the
bundled one, and gdImageCopyRotated() is available in libgd2-xpm, so why
isn't it accessible from PHP?

I was thinking I could write my own imagerotate() (in PHP) as a wrapper
for gdImageCopyRotated(). This seems like the easiest way for me to be
able to use a compatible imagerotate() and still enjoy the wonders of
APT (i.e. using libgd2-xpm istead of the bundled GD which "isn't
available" on debiansystems.)

/Reine

[1] http://www.boutell.com/gd/manual2.0.33.html#copying (scroll down a
bit)
[2] get_defined_functions();  // PHP - prints all defined functions. But
imagecopyrotated() isn't listed.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to