Skip to content

Allow controlling which image format sources in the frontend can be replaced #238

@felixarntz

Description

@felixarntz

Follow-up to #187: The webp_uploads_content_image_mimes currently controls which image formats can be used as replacements in the frontend. However, the formats that can currently be replaced in the frontend are still hard-coded - at the moment it is just JPEG (specifically its extensions jpg and jpeg).

We need to implement a way so that these source image formats can also be controlled through a filter. For example, if somebody implemented support to create WebP versions for PNG uploads, it should be possible to use the WebP Uploads module's logic to replace PNGs as well.

Related is #237, however let's keep these two decoupled. Depending on the decision in #237, it may simply be that the expected order of the filtered items changes, which would be trivial to update here.

Metadata

Metadata

Labels

[Plugin] Modern Image FormatsIssues for the Modern Image Formats plugin (formerly WebP Uploads)[Type] EnhancementA suggestion for improvement of an existing feature

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions