Blueprint Developer Manual / Version 2110
Table Of ContentseCommerce Connector specific feature
You can manage pictures in CoreMedia Content Cloud that are used in commerce products and SKUs pages. You can use Spring configuration, to map URL path segments to specific crops.
CoreMedia Blueprint comes with a predefined mapping defined in the
catalogPictureHandler
bean. If you want to define your own mapping you
can overwrite the default setting as follows:
<customize:replace bean="catalogPictureHandler" id="customizeCatalogPictureHandler" property="pictureFormats"> <description> Your custom picture formats for the Catalog Picture Handler </description> <map> <entry key="customFormat1" value="custom_crop1/300/410"/> <entry key="customFormat2" value="custom_crop2/700/1200"/> </map> </customize:replace>
The key
attribute in the entry
tag is the
identifier that is used in the request URL while value is the name of the crop of the image that
will be used followed by the size of the image as "/width/height/ in pixel. The definition of
crops is explained in Section 5.4.14, “Images”