[Typo3-dev] function imagecopyresized
Michael Stucki
mundaun at gmx.ch
Tue Mar 30 12:19:20 CEST 2004
Hi Thomas,
> This makes the Image bad:
> $this->makeEffect($im, Array('value'=>'colors=256')); // Reduce
> colors to 256 - make SURE that IM is working then!
The whole function provides a replacement for the imagecopyresized function
in PHP. I don't know why but Kasper expects this not to be working with GD2,
therefore he created this alternative function.
However I have found out that this would make absolutely no problems and
work fine even with GD2!
You can fix the problem by commenting out all the stuff from 'if(...) {' up
to the else statement and just leave this single line there:
imagecopyresized($im, $cpImg, $Xstart, $Ystart, $cpImgCutX, $cpImgCutY, $w, $h, $w, $h);
Hope this helps. I hope Kasper will read my mail and add a switch to the
config where one can choose if he wants to use the replacement or not.
Cheers - michael
---------- Forwarded Message ----------
Subject: imagecopyresized
Date: Montag, 19. Januar 2004 13.24
From: Michael Stucki <mundaun at gmx.ch>
To: kasper at typo3.com
Dear Kasper,
I am close to finish fully working Debian packages that contain full GIF
support.
My problem is that there is one outstanding problem with the alternative
imagecopyresized function you have created.
I don't know why, but I couldn't make it work. Apache simply died before
sending any output. The die happens in this function, but I don't know more
about that.
Anyway. After a few hours of playing around with that, I have finally found
out that PHPs original imagecopyresized function would be fully working! (At
least in the install tool - there are no problems with the checks.)
Since this is hardcoded and TYPO3 never uses this function when GDlib2 is
used, I would like to ask you to to add a new option where I can override
this.
Thanks in advance.
Kind regards
- michael
-------------------------------------------------------
--
Want support? Please read the list rules first: http://typo3.org/1438.0.html
More information about the TYPO3-dev
mailing list