Skip to content

Preview images use original as default, which may be too large and preview might not be generated #76

@Sreini

Description

@Sreini

url = self.seo_image.get_rendition("original").url

The preview image uses the original image that was uploaded, which does not make sense in my opinion. A lot of platform have limits as to how big an image has to be in order for it to be shown on the preview, for example facebook has a limit of 8MB: https://developers.facebook.com/docs/sharing/webmasters/images/

The better way to do it would be show at least the webp or avif version of the image, if that is available. This more closely aligns with the philosophy of allowing content creators and editors to just upload images and having wagtail take care of the rest.

I am open to creating a pull request for this myself if this solution is accepted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions