Use image styles to control how Acquia DAM (Widen) images are transformed and displayed in Drupal. With image styles you can automatically resize, crop, scale, or apply other effects to images when they are rendered on your site.
This page explains how to enable image styles for the Acquia DAM (Widen) module, how image styles work with DAM‑backed images, and how to configure them for common use cases.
For more information about how assets are delivered, such as embed and Download and sync, and which asset types support image styles, refer to the Asset rendering section in the Features and capabilities section.
You must explicitly enable the image styles that can be used by the DAM integration to apply them with Acquia DAM (Widen) media.
To enable image styles for Acquia DAM (Widen):
/admin/config/acquia-damClick Save configuration.
Only the selected image styles are available for selection when you configure displays for Acquia DAM (Widen) media types and related view modes
The Acquia DAM (Widen) module exposes DAM images as Drupal media entities backed by image files. Drupal applies image styles when those images are displayed.
Key points:
Before attaching image styles to display modes and view modes, confirm you have the styles you need.
To create or review image styles:
/admin/config/media/image-stylesRepeat as needed until you have the set of image styles required by your site's design. Then ensure these styles are allowed for Acquia DAM (Widen) on the Image styles tab as described above.
Once your image styles exist and are allowed for Acquia DAM (Widen), apply them to the appropriate display modes for DAM‑backed media.
To specify and configure the image style that is used when a media entity is rendered:
/admin/structure/mediaClick the gear icon next to the formatter to configure it.
In the formatter settings, select the desired Image style, such as, for example, thumbnail, teaser, or hero.
Repeat this for each view mode you use, such as Default, Teaser, and Card, so that each mode uses an appropriate image style. Use image styles in entity view modes such as nodes and blocks.
If your content types or blocks reference DAM media fields:
Configure the media view mode to use the correct image style for its image field.
This lets you control image styles centrally on the media entity while you use different styles in different contexts.
When you configure image styles for Acquia DAM (Widen) images, keep in mind:
If you switch an existing site from Embed to Download and sync or vice versa, review your image styles and display modes to ensure images still render as expected.
If you use SVG assets from Acquia DAM (Widen):
After SVG support is configured, you can apply image-style-like behavior where it is supported by your SVG rendered module.
For modern formats like WebP and AVIF:
If images from Acquia DAM (Widen) do not display with the expected image style:
If the asset is under a generic or incorrect media type, to correct media types in bulk, run the following command:
drush acquia-dam:resolve-asset-media-typeClear Drupal’s caches if you recently changed image styles or display configuration:
drush crClick Save configuration.
Only the selected image styles are available for selection when you configure displays for Acquia DAM (Widen) media types and related view modes
The Acquia DAM (Widen) module exposes DAM images as Drupal media entities backed by image files. Drupal applies image styles when those images are displayed.
Key points:
Before attaching image styles to display modes and view modes, confirm you have the styles you need.
To create or review image styles:
/admin/config/media/image-stylesRepeat as needed until you have the set of image styles required by your site's design. Then ensure these styles are allowed for Acquia DAM (Widen) on the Image styles tab as described above.
Once your image styles exist and are allowed for Acquia DAM (Widen), apply them to the appropriate display modes for DAM‑backed media.
To specify and configure the image style that is used when a media entity is rendered:
/admin/structure/mediaClick the gear icon next to the formatter to configure it.
In the formatter settings, select the desired Image style, such as, for example, thumbnail, teaser, or hero.
Repeat this for each view mode you use, such as Default, Teaser, and Card, so that each mode uses an appropriate image style. Use image styles in entity view modes such as nodes and blocks.
If your content types or blocks reference DAM media fields:
Configure the media view mode to use the correct image style for its image field.
This lets you control image styles centrally on the media entity while you use different styles in different contexts.
When you configure image styles for Acquia DAM (Widen) images, keep in mind:
If you switch an existing site from Embed to Download and sync or vice versa, review your image styles and display modes to ensure images still render as expected.
If you use SVG assets from Acquia DAM (Widen):
After SVG support is configured, you can apply image-style-like behavior where it is supported by your SVG rendered module.
For modern formats like WebP and AVIF:
If images from Acquia DAM (Widen) do not display with the expected image style:
If the asset is under a generic or incorrect media type, to correct media types in bulk, run the following command:
drush acquia-dam:resolve-asset-media-typeClear Drupal’s caches if you recently changed image styles or display configuration:
drush crIf this content did not answer your questions, try searching or contacting our support team for further assistance.
If this content did not answer your questions, try searching or contacting our support team for further assistance.