Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use webp images for faster load of pagesΒ #681

@MarcelGeo

Description

@MarcelGeo

webp images having 85% of jpg images size.

Vitepress supporting webp images without any fallback for support of older browsers. But support of browsers in 2025 is like 🟒 , check https://caniuse.com/?search=webp . We are not having internet explorer in browsers list in analytics and there is some Safari 16 which started support in 20222.

Image

We can use several possibilities to convert images:

Cwebp

download here as archive https://storage.googleapis.com/downloads.webmproject.org/releases/webp/index.html
copy /bin/cwebp to /usr/local/bin

cwebp image.jpg -o image.webp

Or some web solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions