Skip to content

Eleventy Transform: allow overriding settings on a per-image basis #277

Open
@valadaptive

Description

I have some thumbnails that I can get away with a lower quality setting on, but also a lot of full-size images and UI screenshots that I want to look nicer. There doesn't currently appear to be a way to set things like quality on a per-image basis without using a shortcode for all my images (which is a bit annoying since I don't know how many template engines support things like named arguments, and there are a lot of image attributes I may want to add).

I could see a couple ways of implementing this: some sort of hook in the plugin settings itself that gives access to the <img> element's attributes (either in addition to transform or as an additional argument to it), or a custom eleventy:settings attribute on the element itself. Not too sure about the exact shape of either.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions