Closed
Description
Preconditions
- Magento 2.1.3
- PHP 7
Steps to reproduce
- Edit view.xml file
ex: theme-frontend-luma/etc/view.xml
- Add background color attribute to an image
<image id="related_products_list" type="small_image">
<width>152</width>
<height>230</height>
<background>[250,247,247]</background>
</image>
- Clear cache and reload images.
Expected result
- Image with background
Actual result
The problem comes from 2 methods:
- Method Magento\Catalog\Model\ImageExtractor::processImageBackground : The method return a string array
- Magento\Framework\Image\Adapter\AbstractAdapter::backgroundColor : If the color is not an integer, the background is ignored.
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.2 release lineGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.1 releaseThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release