# $Id$
-Version 1.0-beta2 (March 13th, 2006)
+Version 1.0 ()
------------------------------------------------------------------------
+ * Fix imagepng() function call for PHP 5.1.0 versions
+ (Sebastian Mordziol)
+
* Fix WYSIWYG javascript referencing so that plugins can access their
objects (like emoticonchooser). Also replace <i> with <em> and
<b> with <strong>. (Jay Bertrandt)
+Version 1.0-beta2 (March 13th, 2006)
+------------------------------------------------------------------------
+
* Fixed chief-editor not being able to create editors (garvinhicking)
* Added turkish language by Ahmet Usal
case 'gif':
$func['load'] = 'imagecreatefromgif';
$func['save'] = 'imagegif';
+ $func['qual'] = 100;
break;
case 'jpeg':
case 'jfif':
$func['load'] = 'imagecreatefromjpeg';
$func['save'] = 'imagejpeg';
+ $func['qual'] = 100;
break;
case 'png':
$func['load'] = 'imagecreatefrompng';
$func['save'] = 'imagepng';
+ $func['qual'] = 9;
break;
default:
$in = $func['load']($infilename);
$out = imagerotate($in, $degrees, 0);
- $func['save']($out, $outfilename);
+ $func['save']($out, $outfilename, $func['qual']);
$newwidth = imagesx($out);
$newheight = imagesy($out);
}
imagecopyresampled($out, $in, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
- $func['save']($out, $outfilename, 100);
+ $func['save']($out, $outfilename, $func['qual']);
$out = null;
$in = null;