Broken image urls when using externally hosted images

Created on 17 January 2019, almost 6 years ago
Updated 19 September 2023, about 1 year ago

The picture element works great for locally hosted images. However, I have many images that are linked from an external media server, which are given broken urls when processed by the Picture module.

e.g. the external image url is:

http://media.myserver.net/images/123456.jpg

which should become:

srcset="https://www.mywebsite.com/sites/default/files/styles/my-style/123456.jpg"

but instead becomes:

srcset="https://styles/my-style/123456.jpg"

How can this be fixed? I know that there is no problem with applying image styles to these external images as I can do so with a plain "Image" field in display settings.

Thanks,
Sean.

🐛 Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇬🇧United Kingdom lesleyfernandes

    I am closing all very old tickets that have not received comments for a long time. If someone still faces these issues or thinks they are relevant, please reopen it. Feel free to contribute with more info or a patch.

Production build 0.71.5 2024