Animated GIF restructuring, ImageMagick only used for resizing animated sequences.

This commit is contained in:
Mikael Nordfeldth
2015-01-25 22:56:55 +01:00
parent 2a7d45c986
commit a8e613e508
3 changed files with 11 additions and 30 deletions

View File

@@ -386,7 +386,7 @@ class File extends Managed_DataObject
{
// Get some more information about this file through our ImageFile class
$image = ImageFile::fromFileObject($this);
if ($image->animated && !common_config('image', 'resize_animated')) {
if ($image->animated && is_null(common_config('thumbnail', 'animated'))) {
throw new UseFileAsThumbnailException($this->id);
}