Skip to content

Possible to copy image (passthrough) rather than reprocess? #183

@mbforbes

Description

@mbforbes

For outputting an image of the same format and size, is it possible to have eleventy-img simply copy the file rather than reprocess it?

I read through all the issues I could find that mentioned "copy" and "passthrough" but I couldn't find an answer. The closest I found was this comment:

widths: [null] (default, keep original width)

That should skip processing the images.

However, when I include null or "auto" in the widths, and I inspect those output files, they are different than the originals.

I ask because (a) I have thousands of photos, so this would help quicken deploys, and (b) I've done quite a bit of hand-optimizing exactly how the images are compressed, so I'd like to have them not re-run through a compression algorithm again.

Thank you!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already existsenhancementNew feature or request

    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