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