use_imagecache_root doesn't work with webp

Created on 20 March 2023, over 1 year ago
Updated 29 June 2023, over 1 year ago

Problem/Motivation

This is a follow-up of πŸ› Webp support Fixed and πŸ› use_imagecache_root doesn't work with webp 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

Comments & Activities

Production build 0.71.5 2024