Skip to content
Snippets Groups Projects
Unverified Commit 3c323d2c authored by Daniel Schneider's avatar Daniel Schneider
Browse files

#17661

parent 938428c2
No related branches found
No related tags found
No related merge requests found
...@@ -88,8 +88,8 @@ class Movie extends ProviderV2 { ...@@ -88,8 +88,8 @@ class Movie extends ProviderV2 {
if ($returnCode === 0) { if ($returnCode === 0) {
$image = new \OC_Image(); $image = new \OC_Image();
$image->loadFromFile($tmpPath); $image->loadFromFile($tmpPath);
unlink($tmpPath);
if ($image->valid()) { if ($image->valid()) {
unlink($tmpPath);
$image->scaleDownToFit($maxX, $maxY); $image->scaleDownToFit($maxX, $maxY);
return $image; return $image;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment