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

feat: multiple image formats support (webp, avif) #2017

Merged
merged 11 commits into from
Jul 25, 2024
Merged

feat: multiple image formats support (webp, avif) #2017

merged 11 commits into from
Jul 25, 2024

Conversation

ArnaudLigny
Copy link
Member

@ArnaudLigny ArnaudLigny commented Jul 24, 2024

  • Breaking change: the webp boolean option have been replaced by formats, an array list of alternatives image formats (ie: "avif", "webp")
  • Templating: new avif method to convert an image asset to AVIF format. ie: {{ asset.avif }}
  • Templating: new avif filter to convert an image to AVIF format. ie: {{ asset('image.jpg')|avif }}
  • BC: image are no more "interlaced" by default
  • Fix: the dominant color method works again
  • BC: the dominant color method returns an RGB value instead of hexadecimal

@ArnaudLigny ArnaudLigny marked this pull request as ready for review July 25, 2024 15:05
@ArnaudLigny ArnaudLigny merged commit dbdf7de into master Jul 25, 2024
20 checks passed
@ArnaudLigny ArnaudLigny deleted the avif branch July 25, 2024 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant