Project

General

Profile

Bug #15719 » class.t3lib_stdgraphic.php

Administrator Admin, 2006-03-22 02:12

 
*** class.t3lib_stdgraphic.php Mon Sep 17 22:38:17 2007
--- class.t3lib_stdgraphic.php_orig Mon Sep 17 22:35:30 2007
***************
*** 2767,2776 ****
case 'jpg':
case 'jpeg':
if (function_exists('imageJpeg')) {
! $retVal = imageJpeg($destImg, $theImage, $this->jpegQuality);
! t3lib_div::fixPermissions($theImage);
! return $retVal;
!
}
break;
case 'gif':
--- 2767,2773 ----
case 'jpg':
case 'jpeg':
if (function_exists('imageJpeg')) {
! return imageJpeg($destImg, $theImage, $this->jpegQuality);
}
break;
case 'gif':
***************
*** 2778,2793 ****
if ($this->truecolor) {
imagetruecolortopalette($destImg, true, 256);
}
! $retVal = imageGif($destImg, $theImage);
! t3lib_div::fixPermissions($theImage);
! return $retVal;
}
break;
case 'png':
if (function_exists('imagePng')) {
! $retVal = ImagePng($destImg, $theImage);
! t3lib_div::fixPermissions($theImage);
! return $retVal;
}
break;
}
--- 2775,2786 ----
if ($this->truecolor) {
imagetruecolortopalette($destImg, true, 256);
}
! return imageGif($destImg, $theImage);
}
break;
case 'png':
if (function_exists('imagePng')) {
! return ImagePng($destImg, $theImage);
}
break;
}


(4-4/5)