mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
This commit is contained in:
parent
938428c275
commit
3c323d2cbb
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue