Correct upload with python pil paste. Add Image::getWatermark()
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user