Previously
PHP:
This can result in an internal...
Read more
Читать далее...
updateIcon
had a guard statement around if imageFromFile
failed, but the added isOptimized
check misses that.PHP:
Код:
$baseImage = $imageManager->imageFromFile($this->fileName);
$isOptimized = $baseImage->getType() === IMAGETYPE_WEBP;
unset($baseImage);
if ($this->width != $targetSize || $this->height != $targetSize)
{
$image = $imageManager->imageFromFile($this->fileName);
if (!$image)
{
return false;
}
This can result in an internal...
Read more
Читать далее...