Skip to content

Change file format in templates #207

@hovi

Description

@hovi

As part of my frontend optimization, I would like to convert all my images to webp, while keeping my source images in their original format.
I was thinking of doing this as part of versatileimagefield filters in template as that pipeline is already resizing and cropping images. But I saw there is no built-in option and when going through code it seems like the output format is pretty much hardcoded and the whole part seems to be built with the idea that the format and extension doesn't change the whole time.

Is that correct? What is opinion of creators? Should I solve this outside of versatileimagefield or do you consider something as feature that could be added? I don't mind making a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions