For now, do not reset the image type in reset()
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 2 Sep 2009 00:18:30 +0000 (20:18 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 2 Sep 2009 00:18:30 +0000 (20:18 -0400)
This screws up Ansel's forcing JPG for screen images. Will revert this once a
more elegant way of changing an image's type after it's been loaded that works
across all Horde_Image drivers is implemented.

framework/Image/lib/Horde/Image/Base.php

index 92ea3e1..fc86309 100644 (file)
@@ -225,7 +225,6 @@ class Horde_Image_Base
         $this->_width = null;
         $this->_height = null;
         $this->_background = 'white';
-        $this->_type = 'png';
     }
 
     /**