Merge pull request #23924 from josh4trunks/stable9

Backport  #23752 to stable9
This commit is contained in:
Thomas Müller 2016-04-13 14:11:37 +02:00
commit bd19bbb926
1 changed files with 1 additions and 1 deletions

View File

@ -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);