close

Filter

loading table of contents...

Blueprint Developer Manual / Version 2406.0

Table Of Contents

6.6.4.1 Mapping of Custom Picture Formats

Note

eCommerce 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”

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.