Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow optimizing for format, but not size #11

Closed
Cretezy opened this issue Jun 8, 2023 · 1 comment · Fixed by #18
Closed

Allow optimizing for format, but not size #11

Cretezy opened this issue Jun 8, 2023 · 1 comment · Fixed by #18
Assignees
Labels
enhancement New feature or request

Comments

@Cretezy
Copy link
Contributor

Cretezy commented Jun 8, 2023

We have images which we don't care about optimizing in size, however generating in better formats (Like AVIF) is important to us.

Does it make sense to add to this plugin? I can contribute a PR.

@marlokessler marlokessler self-assigned this Jun 9, 2023
@marlokessler marlokessler added the enhancement New feature or request label Jun 9, 2023
@marlokessler
Copy link
Owner

marlokessler commented Jun 9, 2023

Hi @Cretezy, this seems like a valid use case. It would be awesome if you could contribute the feature as a PR.

I think the best way to do this is by allowing image size objects without a width or height where only the new formats are then generated, e.g.:

sizes: [
    {
      name: "original",
    },
]

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants