Skip to content

Adding the option for conversion to WebP-format #62

@bramdeba

Description

@bramdeba

The problem to solve

When uploading images to a content platform, I might want imagemagick to automatically convert them to Google's image format, WebP for faster loading times.

Proposed solution

I would love to have the option to let imagemagick convert a file to another format, preferably WebP.

Add a targetFormat-option to the imageSizes-array to allow setting a target format (jpg, webp) for automatically resizing and converting the image in one go. That way, we would be able to use 2 image sizes for the WebP-converted image, and 2 image sizes for the JPEG-original (but resized) format to use as fallback for older browsers who do not yet support WebP.

Alternatives

Perhaps it is easier to use a postprocessor? Would love someone's opinion on this.

Additional context

Trying to fit all pieces together that are (imo) necessary for turning ApostropheCMS into the best possible JS-powered digital experience platform.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions