Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete webp version of original image files. #522

Open
elabx opened this issue Feb 19, 2024 · 1 comment
Open

Delete webp version of original image files. #522

elabx opened this issue Feb 19, 2024 · 1 comment

Comments

@elabx
Copy link

elabx commented Feb 19, 2024

Short description of the enhancement

Currently it is impossible to delete the webp version of the original images through the ProcessWire interface.

Current vs. suggested behavior

It would be ideal if we can delete the original file's webp version along the file variations, when selecting them through checkboxes.

Why would the enhancement be useful to users?

I has occurred to me that some PNGs with transparency don't convert well with GD and generate artifacts. A potential fix for this, is to install Imagick and enable it in ProcessWire. After installing Imagick on the server and the PW module, I have to also delete the previously generated webp so that it can be generated again. I feel it'd be practical to be able to delete it from the UI.

ryancramerdesign added a commit to processwire/processwire that referenced this issue Feb 23, 2024
…he ability to delete webp variations independently of jpg/png variations, including for the main/non-resized image.
@ryancramerdesign
Copy link
Member

@elabx Thanks good idea, I have added this. In addition to letting you delete the webp of the original image, it also lets you independently delete webp versions of the variations as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants