WebP images are not regenerated after cropping

Created on 13 February 2024, 10 months ago

Problem/Motivation

I am using WebP along with Crop API and Image Widget Crop modules. The issue I experience is that after changing the crop area for the already existing image, the generated image doesn’t get updated and displays the old crop area. The only way to get it updated is to run drush image:flush --all and then clear the browser’s cache.

I experienced the same problem before using the WebP module, and this patch (from Image style derivative flush missing on update 🐛 Image style derivative flush missing on update Needs review ) solved the issue. However, after I installed the WebP module the problem returned.

The other important thing is that the mentioned issue doesn’t exist if I remove the old image and upload a new image. As a result of uploading a new image, the cropping area gets refreshed properly (also on the further crop changes).

<code><code>

🐛 Bug report
Status

Active

Component

User interface

Created by

🇬🇧United Kingdom marekgol Bonnyrigg

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

Comments & Activities

Production build 0.71.5 2024