media:content width and height attribute should be determined from the image style instead of the original image

Created on 16 June 2023, over 1 year ago
Updated 11 July 2023, over 1 year ago

Problem/Motivation

views_rss_media_getid3_preprocess_media_content() adds additional attributes to media:content. The attributes are determined from the original file data. However, when the field is configured to use an image style, the attributes do not match the referred file.

Steps to reproduce

Configure a media:content field use a media item rendered as a media thumbnail with an image style.

Proposed resolution

Determine media:content width and height attributes from the image style instead of the original image.

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands idebr

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

Comments & Activities

Production build 0.71.5 2024