[TYPO3-core] RFC: gifbuilder format

Martin Kutschker Martin.Kutschker at blackbox.net
Thu Apr 13 10:11:32 CEST 2006


Bernhard Kraft <kraftb at kraftb.at> writes on 
Wed, 12 Apr 2006 08:44:44 +0200 (METDST):

> Hello,
> 
> This is a CVS patch request.


What branch? TYPO3_40 is fine with me.


> 
> BT reference:
> http://bugs.typo3.org/view.php?id=3232
> 
> 
> Description:
> Currently the ".format =" option of a GIFBUILDER object will only
> allow to explicitly define jpg as output format. Else always the
> $this->gifExtension will get
> used which is set to "gif"
> in the case of gdlib_png=0 and "png" when gdlib_png=1.
> 
> So it is not possible to explicitly overrule the default-format for a
> single GB object.
> 
> 
> Solution:
> Just add "png" and "gif" parts to the switch of method "extension" in
> tslib_gifbuilder.php


+1

Perhaps add this as a convenience:

case 'jpg':
case 'jpeg':
return 'jpg';

Masi




More information about the TYPO3-team-core mailing list