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

Use WEBP images to make things faster #509

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Commits on May 14, 2023

  1. Add WEBP version of our hero images

    These were converted at 20% quality:
    
    $ convert -quality 20 @ @.20pc.webp
    
    20% quality seems plenty for these (the quality is still pretty
    good) and as these are used behind a title and a colour gradient
    this seems likely to be completely fine for most usages.
    PeterJCLaw committed May 14, 2023
    Configuration menu
    Copy the full SHA
    1381956 View commit details
    Browse the repository at this point in the history
  2. Introduce a script which helps with converting images to WEBP

    Relies on the user having installed ImageMagick.
    PeterJCLaw committed May 14, 2023
    Configuration menu
    Copy the full SHA
    c21fdab View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fb5c304 View commit details
    Browse the repository at this point in the history
  4. Support WEBP for multi-size pictures

    These images were all created using the script introduced previously.
    PeterJCLaw committed May 14, 2023
    Configuration menu
    Copy the full SHA
    8df7526 View commit details
    Browse the repository at this point in the history
  5. Support WEBP versions of single images and use this for avatars

    These photos of individuals are fairly large files for what they
    are, so making the available in WEBP should save visitors some
    download size. Created with the same script introduced previously.
    PeterJCLaw committed May 14, 2023
    Configuration menu
    Copy the full SHA
    7abe287 View commit details
    Browse the repository at this point in the history