Skip to content

[eleventy-plugin-local-respimg] Ignore optimized images that are larger than the original #45

@sdalmonte

Description

@sdalmonte

Sometimes when I run this plugin, some of the optimized images have a larger file size than the original image. Would it make sense to add an option to ignore/discard these images and fall back to the original?

I’ve seen this at >90% of the original width when generating an optimized PNG from a PNG original, and at >70% of the original width when generating a WebP from a JPEG original.

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