File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/code/Magento/Catalog/Model Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Catalog \Model ;
7
7
8
- use Magento \Catalog \Model \Product \Attribute \Backend \Media \ImageEntryConverter ;
9
8
use Magento \Catalog \Helper \Image ;
9
+ use Magento \Catalog \Model \Product \Attribute \Backend \Media \ImageEntryConverter ;
10
+ use Magento \Framework \View \Xsd \Media \TypeDataExtractorInterface ;
10
11
11
- class ImageExtractor implements \ Magento \ Framework \ View \ Xsd \ Media \ TypeDataExtractorInterface
12
+ class ImageExtractor implements TypeDataExtractorInterface
12
13
{
13
14
/**
14
15
* Extract configuration data of images from the DOM structure
@@ -55,6 +56,7 @@ private function processImageBackground($backgroundString)
55
56
$ backgroundArray = [];
56
57
if (preg_match ($ pattern , $ backgroundString , $ backgroundArray )) {
57
58
array_shift ($ backgroundArray );
59
+ $ backgroundArray = array_map ('intval ' , $ backgroundArray );
58
60
}
59
61
return $ backgroundArray ;
60
62
}
You can’t perform that action at this time.
0 commit comments