loading table of contents...

8.7.4.1. Mapping of Custom Picture Formats

[Note]Note

This feature can only be used in the e-Commerce blueprint.

You can manage pictures in CoreMedia DXP 8 that are used in IBM 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 6.3.14, “Images”