SOURCES: GD.php.patch (NEW) - for pear bug #599

glen glen at pld-linux.org
Wed Jun 15 12:53:54 CEST 2005


Author: glen                         Date: Wed Jun 15 10:53:53 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- for pear bug #599

---- Files affected:
SOURCES:
   GD.php.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/GD.php.patch
diff -u /dev/null SOURCES/GD.php.patch:1.1
--- /dev/null	Wed Jun 15 12:53:53 2005
+++ SOURCES/GD.php.patch	Wed Jun 15 12:53:48 2005
@@ -0,0 +1,21 @@
+Index: GD.php
+===================================================================
+RCS file: /repository/pear/Image_Transform/Driver/GD.php,v
+retrieving revision 1.18
+diff -u -u -r1.18 GD.php
+--- GD.php	29 Dec 2003 18:25:28 -0000	1.18
++++ GD.php	19 Jan 2004 16:55:16 -0000
+@@ -228,7 +228,12 @@
+     {
+         $type           = $type==''? $this->type : $type;
+         $functionName   = 'image' . $type;
+-        $functionName($this->imageHandle, $filename) ;
++        if ($type == 'jpeg') {
++            $functionName($this->imageHandle, $filename, $quality);
++        }
++        else {
++            $functionName($this->imageHandle, $filename) ;
++        }
+         if (!$this->keep_settings_on_save) {
+             $this->free();
+         }
================================================================



More information about the pld-cvs-commit mailing list