Correct upload with python pil paste. Add Image::getWatermark()

This commit is contained in:
Alexander Demidov
2013-12-26 23:06:16 +04:00
parent 58e21bf88c
commit 377d78128f
2 changed files with 17 additions and 0 deletions

View File

@ -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;