Image Management

Salesforce B2C Commerce's Image Management System enables you to create a matrix of images for each product, so that your customers can view products in a variety of ways, enhancing their buying experience. The Image Management System supports:

  1. Multiple images per product, along with multi-dimensional access to individual images and image subsets for variation products and variation product attributes
  2. Image annotation with alt text and image title
  3. Images located both within B2C Commerce and externally
Note: Product image management relies on the explicit assignment of images to products. There is no pattern based image lookup.

The Image Management System accesses images located on B2C Commerce and external systems by their URL reference. You must specify the image location in the context of a catalog. A catalog can either specify an internal or an external image location. The default location (if no location has been specified) points to the related internal catalog base directory.

System URL Address
Internal The system knows the first part of the URL (server address, other URL parts). You must specify a base image path, for example, "/images/foo/".
External

You must provide the first part of the URL. Specify an http URL or an https URL (protocol, server address, other URL parts).

For example:

http url = "http://www.yourimagelocation.com/foobar/"

https url = "https://yoursecureimagelocation.com/foo/bar/"

The image location and the relative image path are stored separately.

Note: You can configure a product image URL with a path up to 1800 characters. Together with the host path configured with a catalog's image settings, you can specify image URLs with up to 2056 characters. If you try to configure a longer path, Business Manager shows a warning and doesn't let you save the image settings of that product.
Note:

Developer documentation and reference materials are available in English only. Refer to the English-language Infocenter https://documentation.b2c.commercecloud.salesforce.com to access this information.

The API class dw.content.MediaFile provides a complete URL based on both parts. See the B2C Commerce API documentation for more information.

When assigning images to products you need to consider the following:

Related Links

Uploading an Image to the File Browser Window