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

Picture helper improvements #58

Merged
merged 5 commits into from
Nov 30, 2021

Conversation

ErikHen
Copy link
Contributor

@ErikHen ErikHen commented Nov 30, 2021

  • Picture helper: Possible to create Webp versions for other formats than jpg. Add formats to the CreateWebpForFormat array in the Image Type.
  • Picture helper: Webp versions of png images will lossless by default. Can be changed by setting CreateLosslessWebpForPng in the Image Type.
  • Picture helper: decoding="async" is now by default added to the img element. Can be changed by setting ImageDecodingin the Image Type.
  • Picture helper: DefaultImgWidth is now optional. Will use the largest SrcSetWidth if not set.

@vnbaaij vnbaaij merged commit 04789e4 into vnbaaij:master Nov 30, 2021
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.

None yet

2 participants