FrontifyAssetFieldFormatter not adding the width parameter to the Frontify image URL

Created on 26 November 2024, 4 months ago

If an Drupal image style is selected for display, FrontifyAssetFieldFormatter should, looking at the code, at least extract the "width" applied in the image style and append it to the Frontify CDN image URL.

It does this by replacing {width} in the original URL with the width value from the image style.

However, in our test setup the original URL does not contain the string {width}, and therefore the width parameter is never appended.

Just adding ?width=XXX to the end of the URL works.

Proposed resolution

Check for {width} placeholder in the URL. If not available, just add the width attribute to the URL query string.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany gwagroves

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

Comments & Activities

Production build 0.71.5 2024