Esempio n. 1
0
 function getSizes($file = false)
 {
     if (!$file) {
         $size = getimagesize(self::$original);
     } else {
         $size = getimagesize($file);
     }
     self::$original_sizes = array('width' => $size[0], 'height' => $size[1], 'mime' => $size['mime']);
     return self::$original_sizes;
 }