The following table describes the attributes you can use with the ccResizeImage
binding.
Attribute | Description |
---|---|
| The image source URL. |
| The override dimensions for the |
| The override dimensions for the |
| The override dimensions for the |
| The override dimensions for the |
| The dimensions used if an override dimension has not been specified for the current viewport. The value for this attribute can be a comma-delimited list of two values, the first for height and the second for width, for example:
Alternatively, the value can be one of the following: If
|
| The alternative text for the image. |
| The error image URL. |
| The alternative text for the error image. |
| The format of the converted images. Only JPEG is supported. Note: GIF images cannot be resized or converted to JPEG as they may contain animation which is lost after resizing and conversion. |
| The hexadecimal color code for the replacement color of the PNG alpha channel (default is white, |
| A number that lets you control the image resolution quality. The value of For example, you might want to reduce the resolution of product listing images to speed up image loading times. The default value of, |
| Makes a set of variously sized images available to the browser and defines the conditions under which each one is loaded. See Use a srcset to specify the image to load for more details. |
| A URL to an image in the Media library, used when the available width for displaying the image is less than 100 pixels. See Use a srcset to specify the image to load for more details. |
| A URL to an image in the Media library, used when the available width for displaying the image is less than 300 pixels. See Use a srcset to specify the image to load for more details. |
| A URL to an image in the Media library, used when the available width for displaying the image is less than 475 pixels. See Use a srcset to specify the image to load for more details. |
| A URL to an image in the Media library, used when the available width for displaying the image is less than 940 pixels. See Use a srcset to specify the image to load for more details. |
| Reserves a minimum height on the page layout to accommodate an image before the image loads. This prevents the layout from shifting after the image loads. See Reserve a minimum height for an image for more details. |