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 essential support for WebP/AVIF in @docusaurus/lqip-loader and @docusaurus/plugin-ideal-image #8686

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Commits on Apr 21, 2023

  1. Add basic support for WebP/AVIF in @docusaurus/lqip-loader

    `sharp` does support both.
    Generated lqips for WebP/AVIF have the same formats as inputs, but different formats may be better. (needs improvement if so)
    tats-u committed Apr 21, 2023
    Configuration menu
    Copy the full SHA
    127204f View commit details
    Browse the repository at this point in the history
  2. Add test assets for @docusaurus/lqip-loader

    - PNG is from `website/static/img`
    - Convert it to WebP/AVIF using Squoosh with max effort
    - AVIF: use YUV444; quality = 30
    - WebP: use lossless
    tats-u committed Apr 21, 2023
    Configuration menu
    Copy the full SHA
    d2c9d82 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    eab1ba4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9011d3b View commit details
    Browse the repository at this point in the history
  5. Improve image type definition

    tats-u committed Apr 21, 2023
    Configuration menu
    Copy the full SHA
    1f3d85e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6b06164 View commit details
    Browse the repository at this point in the history
  7. Add test case in dogfooding

    tats-u committed Apr 21, 2023
    Configuration menu
    Copy the full SHA
    b1ef5b9 View commit details
    Browse the repository at this point in the history