-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 21-04-2005 18:40, Reine Johansson wrote: > On Tue, 19 Apr 2005 13:27:39 +0200 > Jonas Smedegaard <[EMAIL PROTECTED]> wrote: > > >>>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. > > > Well, not exactly. My intension is not to hack any package (php/gd). > What I was thinking was that if users on my server is used to using > imagerotate() in their PHP-code, I must somehow deliver it to them. As I > saw gdImageCopyRotated() was available in libgd2-xpm, I figured I could > use that one instead. The thing is that that function and imagerotate() in > the bundled GD is not the same, which forces me to write a wrapper called > imagerotate() in PHP and say to the users; "If you want to use > imagerotate() you have to include this [rotatewrapper.php] file in your > php-document.
Think globally, please :-) Such wrapper script might be beneficial to others than your users, so please post it here as a workaround, until maybe it will be implemented within the php4-gd module itself some day. - 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 iD8DBQFCaMpBn7DbMsAkQLgRAl9CAJ9gnJb733SNk2o+MsSLNgASz5bmVACfWbhf IPXNDIfi8wMAL/GwtCSa6aE= =OJ3b -----END PGP SIGNATURE-----