use_imagecache_root doesn't work with webp

Created on 12 January 2023, almost 2 years ago
Updated 21 July 2024, 4 months ago

Problem/Motivation

This is a follow-up of πŸ› Webp support Fixed . The compatibility with the webp module only works with use_imagecache_root disabled. The cause of this is that webp removes the original file extension.

This used to work with stage_file_proxy and this old patch:
https://www.drupal.org/project/stage_file_proxy/issues/3136443#comment-1... πŸ› Webp support Fixed

It basically added some possible extensions to the paths, which is not ideal.

There is also this issue in the webp issue queue, which is about adding the original extension to the URLs and therefore fix the issue:
πŸ› Rendering duplicate images when the original images have the same name but different extension RTBC

Steps to reproduce

  • Enable the use_imagecache_root configuration
  • Try to load images generated with the webp module using stage_file_proxy

Proposed resolution

TBD

Remaining tasks

  • Figure out if this should be solved in stage_file_proxy or the webp module.

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland Lukas von Blarer

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

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.71.5 2024