Skip to content
This day’s portion

Automating webp in Jekyll

| Comments

So, we have a plugin which appears to trawl through a folder of images and output webp versions. I see in the config you can opt to replace the existing extension (png, jpg etc.) or append webp to it (resulting in a filename like image.jpg.webp). Second option sounds best as it will avoid having to do some string manipulation with the filename in the figure and image includes (i.e. replace jpg with webp). Assuming the first build will be the most painful as hopefully it checks for an existing webp file before creating a new one. Let’s see.

Leon Paternoster

Leon Paternoster


Previous note

Next note


Add a comment

Required fields marked * I won’t publish or share your email address. Privacy statement.

Comments are moderated and won’t appear straight away. Subscribe to the comments feed to see when new comments are published.

No comments yet 🦉.