Needs review
Project:
Media Responsive Thumbnail
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Mar 2023 at 07:22 UTC
Updated:
14 Jul 2026 at 09:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
socialnicheguru commentedComment #3
ndewhurstHi, I maintain the Brandfolder module, which provides a media source plugin for images that are ultimately stored in that external DAM. Drupal media entities using that source do have an image field and a media thumbnail (which are effectively identical, such that the thumbnail alt & title attributes can be updated and translated). However, the "source field" for those media entities is not an image field, so the latest version of this module is not working with those media types. This is the same situation as for oembed and other media sources.
Here is a patch that flips the logic a bit and says "try to use the media entity's source field if this is a standard image-sourced media item; otherwise, use the thumbnail."
Comment #4
djdevinHad the same issue with Bynder, probably functions the same way.
Patch fixes the issue.
Comment #5
djdevinThis works but when using Bynder (or another media provider) the alt text is lost because $source_field isn't an image.
This is not the fault of the patch as it was missing before. But I changed the patch around so that it would find the first image field on the media.
Not sure if this is the best approach but it does fix the alt text. Responsive thumbnails still seem to work.
Comment #6
fmb commentedThis looks like #3462392: Error when used on "Remote video" media, which has been more active recently. Should we mark this issue as duplicate?