Changeset 1855

Show
Ignore:
Timestamp:
01/28/2008 04:28:29 PM (12 months ago)
Author:
Shadowhand
Message:

Cleanup of GD Image driver.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/drivers/Image/GD.php

    r1852 r1855  
    2424        public function process($image, $actions, $dir, $file) 
    2525        { 
     26                // Set the "create" function 
    2627                switch ($image['type']) 
    2728                { 
     
    3738                } 
    3839 
     40                // Set the "save" function 
    3941                switch (substr($file, strrpos($file, '.') + 1)) 
    4042                { 
     
    295297                        )); 
    296298 
    297                         self::$blank_png_width = 40; 
    298                         self::$blank_png_height = 40; 
     299                        // Set the blank PNG width and height 
     300                        self::$blank_png_width = imagesx(self::$blank_png); 
     301                        self::$blank_png_height = imagesy(self::$blank_png); 
    299302                } 
    300303