This commit is contained in:
Daniel Schneider 2019-10-30 20:00:21 +01:00
parent 938428c275
commit 3c323d2cbb
No known key found for this signature in database
GPG key ID: A64DB520679E2E43

View file

@ -88,8 +88,8 @@ class Movie extends ProviderV2 {
if ($returnCode === 0) {
$image = new \OC_Image();
$image->loadFromFile($tmpPath);
unlink($tmpPath);
if ($image->valid()) {
unlink($tmpPath);
$image->scaleDownToFit($maxX, $maxY);
return $image;