[StoreRemoteMedia] Remote images are now stored exactly on the necessary size for the thumb

This commit is contained in:
2021-02-17 09:48:24 +00:00
parent 22b5dd8567
commit ef0f65720e
3 changed files with 18 additions and 17 deletions

View File

@@ -100,8 +100,9 @@ class File_thumbnail extends Managed_DataObject
case 'image/svg+xml':
throw new UseFileAsThumbnailException($file);
}
} else {
throw new ServerException("This remote file has no local thumbnail.");
}
throw new ServerException("This remote file has no local thumbnail.");
}
$image = ImageFile::fromFileObject($file);
$imgPath = $image->getPath();