-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 19-04-2005 13:05, Reine Johansson wrote:

> 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 guess the reason is that each function must be wrapped in the PHP code.

> 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.)

I guess you mean to hack the php package to have both imagerotate() and
a new imagerotated() use imagerotated() from GD, right? That sounds sane
to me. Please post a diff of your tweak to this bugreport if/when you
get something working.


> [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.

I assume your test was to invoke the PHP-wrapped get_defined_functions()
rather than the GD one directly. I guess the wrapped one presents only
the functions known to the wrapper.


Kind regards,

 - Jonas

- --
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136  Website: http://dr.jones.dk/

 - Enden er nÃr: http://www.shibumi.org/eoti.htm
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCZOsrn7DbMsAkQLgRAmf3AJ9rV9s3VpKMJ3nu4MWF+TxFcGLlsQCfX8h4
iBU60a1PPOq10MFQvCGqWbw=
=Cl1o
-----END PGP SIGNATURE-----

Reply via email to