Support "thumbnail as image" usage pattern

Created on 10 May 2023, over 1 year ago
Updated 15 September 2023, about 1 year ago

Problem/Motivation

Some sites use the "Media Thumbnail” formatter for media entity reference fields. Media thumbnails are technically distinct from the media source field and/or image field (in the case of image media)…but the source image is often the same. People use the thumbnail formatter as a quick way to manage image rendering from the host entity, rather than rendering the referenced media entity and using the corresponding media type display settings. This pattern is not uncommon.
There are also other modules such as Media Responsive Thumbnail that rely on this pattern.

Proposed resolution

Support this pattern in the Brandfolder module. Since there's a 1-to-1 mapping between media entities and BF attachments, provide a thumbnail file ID and URI that corresponds to the attachment CDN URL. Also support alt text and other attributes for media thumbnails, using the same values that we use for the parent media item and associated image field.

User interface and API changes

Media thumbnails will always use the same BF source image as the image field on BF Image media items. Thumbnail-based images will have appropriate alt text attributes.

Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

🇺🇸United States ndewhurst USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024