summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoshua Ruehlig <joshruehlig@gmail.com>2016-04-11 05:04:57 -0700
committerThomas Müller <thomas.mueller@tmit.eu>2016-04-11 14:04:57 +0200
commit329849f2c2431bc797dff19a2e51b25e7ee961de (patch)
treede84192fdbefd7a4b264bb85299c34c48c2a08f6 /lib
parent929a28421ac1b5e4576d8866306b5cde62d178b7 (diff)
downloadnextcloud-server-329849f2c2431bc797dff19a2e51b25e7ee961de.tar.gz
nextcloud-server-329849f2c2431bc797dff19a2e51b25e7ee961de.zip
To be safe don't unload until end (#23752)
* To be safe don't unload until end * unlink needs to be before return to actually do anything
Diffstat (limited to 'lib')
-rw-r--r--lib/private/preview/image.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/preview/image.php b/lib/private/preview/image.php
index b377f0e855d..3ea99d6963a 100644
--- a/lib/private/preview/image.php
+++ b/lib/private/preview/image.php
@@ -53,10 +53,10 @@ abstract class Image extends Provider {
$fileName = $fileview->getLocalFile($path);
}
$image->loadFromFile($fileName);
+ $image->fixOrientation();
if ($useTempFile) {
unlink($fileName);
}
- $image->fixOrientation();
if ($image->valid()) {
$image->scaleDownToFit($maxX, $maxY);