[Typo3-UG Oesterreich] Re: GD library functions - test

Stefan Beylen intsys at swissinfo.org
Wed Jul 21 12:35:24 CEST 2004


Hello TUGA,

  alles wieder in ordnung...einfach in der class.t3lib_stdgraphics.php
  folgende änderung vornehmen:

  von:
  --- (Zeile 480)
  function imagecopyresized(&$im, $cpImg, $Xstart, $Ystart, $cpImgCutX, $cpImgCutY, $w, $h, $w, $h)       {
                if ($this->imagecopyresized_fix)      {
                        $im_base = imagecreatetruecolor(imagesx($im), imagesy($im));    // Make true color image
                        imagecopyresized($im_base, $im, 0,0,0,0, imagesx($im),imagesy($im),imagesx($im),imagesy($im));  // Copy the source image onto that
                        imagecopyresized($im_base, $cpImg, $Xstart, $Ystart, $cpImgCutX, $cpImgCutY, $w, $h, $w, $h);   // Then copy the $cpImg onto that
(the actual operation!)
                        $im = $im_base; // Set pointer
                        $this->makeEffect($im, Array('value'=>'colors=256'));   // Reduce colors to 256 - make SURE that IM is working then!
                } else {
                        imagecopyresized($im, $cpImg, $Xstart, $Ystart, $cpImgCutX, $cpImgCutY, $w, $h, $w, $h);
                }
  }
  ---
  in:
  ---
  function imagecopyresized(&$im, $cpImg, $Xstart, $Ystart, $cpImgCutX, $cpImgCutY, $w, $h, $w, $h)       {
                        imagecopyresized($im, $cpImg, $Xstart, $Ystart, $cpImgCutX, $cpImgCutY, $w, $h, $w, $h);
  }
  ---

  und schon klappts!

  ganz einfach wenn mans weiß...schade dass sich dieser bug bis 3.6.2
  durchgesetzt hat ;)
   
  happy patching!
  
-- 
Best regards, Steve

 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 Stefan Beylen
 T / private: +43 (0)660 76 47 252
 M / private: intsys at swissinfo.org
 W / private: http://www.lingoist.com
 ICQ private: 19461808
 MSN private: iiioiooo
 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::






More information about the TYPO3-at mailing list