|
|
@ -20,6 +20,8 @@ abstract class Image extends File |
|
|
|
|
|
|
|
protected static $sizes = array(); |
|
|
|
|
|
|
|
protected static $watermarks = array(); |
|
|
|
|
|
|
|
public static function getClassName() |
|
|
|
{ |
|
|
|
return get_called_class(); |
|
|
@ -50,6 +52,11 @@ abstract class Image extends File |
|
|
|
return static::$sizes; |
|
|
|
} |
|
|
|
|
|
|
|
public static function getWatermark($size) |
|
|
|
{ |
|
|
|
return (isset(static::$watermarks[$size])) ? static::$watermarks[$size] : false; |
|
|
|
} |
|
|
|
|
|
|
|
public static function getMaxWidth() |
|
|
|
{ |
|
|
|
return static::$max_width; |
|
|
|