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
This commit is contained in:
parent
929a28421a
commit
329849f2c2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue