Merge pull request #23924 from josh4trunks/stable9
Backport #23752 to stable9
This commit is contained in:
commit
bd19bbb926
|
@ -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 New Issue