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

Add WebP format support #116

Merged
merged 4 commits into from
Jan 24, 2021
Merged

Add WebP format support #116

merged 4 commits into from
Jan 24, 2021

Conversation

simonihmig
Copy link
Owner

This is the first part of #57. It adds the build-time processing. The major change here is that we not only save the resized images in the original format (until now either jpeg or png), but in additional ones. So we have a new key type in the meta data, and adopted the service method to also query for that type. Given that work, adding new formats like AVIF (#85) should be very easy.

The frontend still needs to be updated to support these additional formats. Currently it still only exposes the original format. Adding additional ones requires some new markup, namely using <picture> instead of just <img srcset>. This will be done in a separate PR.

/cc @andreasschacht @lolmaus

@simonihmig simonihmig merged commit 0efcd76 into dev-v2 Jan 24, 2021
@simonihmig simonihmig deleted the webp branch January 24, 2021 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant