Maybe we can detect animated files in core

This commit is contained in:
Mikael Nordfeldth
2015-01-25 22:10:57 +01:00
parent 470971cf47
commit 4dd6d7869e
3 changed files with 13 additions and 3 deletions

View File

@@ -49,7 +49,16 @@ if (!defined('GNUSOCIAL')) { exit(1); }
class ImageMagickPlugin extends Plugin
{
// configurable plugin options must be declared public
public $resize_animated = false;
public $resize_animated = null;
public function initialize()
{
parent::initialize();
if (is_null($this->resize_animated)) {
$this->resize_animated = common_config('image', 'resize_animated');
}
}
/**
* @param ImageFile $file An ImageFile object we're getting metadata for