Fixed
Project:
Stage File Proxy
Version:
4.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Jun 2025 at 08:33 UTC
Updated:
9 Oct 2026 at 17:51 UTC
Jump to comment: Most recent
Seems like latest version of the module does not work well with imageapi_optimize_webp.
The issue is that they both override code class ImageStyleDownloadController.
Install and configure imageapi_optimize_webp and stage_file_proxy
Upload an image and render it, so it will try to render webp version but it can't generate it
Use ImageStyleDownloadController from imageapi_optimize_webp as decorated class.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
nginex commentedComment #4
smustgrave commentedComment #5
smustgrave commentedProbably needs a test too, if possible
Comment #6
useernamee commentedI've written a Kernel test. (Disclousure: I got the help from AI):
Comment #7
ricovandevin commentedThe fix does work. In the current implementation, it does not create a (hard) dependency on the ImageAPI Optimize WebP because no code of that module is called / executed until after it was verified that that module is enabled. So in that sense it is safe.
It might be cleaner to put to support in a submodule. But that would also be quite some overhead for a single line of effective code.
Comment #8
smustgrave commentedComment #10
smustgrave commentedLets finally land this one.