[TYPO3-german] Patch geschrieben - was nun?

Michael Stein der.stein at gmx.de
Wed Jun 25 10:25:36 CEST 2008


Hallo zusammen,
ich habe für die Exension "captcha Library" einen kleinen Patch gemacht
weil es auf meinem System imagerotate nicht gibt.

Wie kann ich den Kasper zukommen lassen?

kasper2008 at typo3.org funktioniert nicht.

Gruß Michael

PS.: Für alle die das Problem auch haben:

--- captcha.php.org    2008-06-25 09:27:58.000000000 +0200
+++ captcha.php    2008-06-25 09:28:34.000000000 +0200
@@ -75,7 +75,17 @@
             $fcol = imagecolorallocate($tmpi, $tcolor[0], $tcolor[1], $tcolor[2]);
             imagefill($tmpi, 0, 0, $back);
             imagestring($tmpi, 5, $osx, $osy, $c, $fcol);
-            $rot = imagerotate($tmpi, $da, $back);
+
+            if (function_exists(imagerotate)) {
+                $rot = imagerotate($tmpi, $da, $back);
+            } else {
+                require_once(PATH_t3lib.'class.t3lib_stdgraphic.php');
+                $obj = new t3lib_stdGraphic();
+                $obj->tempPath=PATH_site.'typo3temp/';
+                $obj->applyImageMagickToPHPGif($tmpi,'-rotate '.$da);
+                $rot=$tmpi;
+            }
+
             $rback = imagecolorclosest($rot, $bcolor[0], $bcolor[1], $bcolor[2]);
             imagecolortransparent($rot, $rback);
             imagecopymerge($img, $rot, $xpos+$dx, $ypos+$dy, 0, 0, 20, 20, 100);


More information about the TYPO3-german mailing list