We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f498fa5 + bd8f875 commit c0833b7Copy full SHA for c0833b7
lib/internal/Magento/Framework/Image/Adapter/Gd2.php
@@ -296,8 +296,9 @@ private function _fillBackgroundColor(&$imageResourceTo)
296
imagecolortransparent($imageResourceTo, $transparentColor);
297
return $transparentColor;
298
}
299
+ // phpcs:ignore Magento2.CodeAnalysis.EmptyBlock.DetectedCatch
300
} catch (\Exception $e) {
- throw new \DomainException('Failed to fill image.');
301
+ // fallback to default background color
302
303
304
list($r, $g, $b) = $this->_backgroundColor;
0 commit comments