thunderbird / thunderbird-website

Build code for the websites on thunderbird.net and start.thunderbird.net
https://www.thunderbird.net
133 stars 72 forks source link

Add an image optimizer to the build pipeline #524

Open MelissaAutumn opened 7 months ago

MelissaAutumn commented 7 months ago

We should add an extra step to the build pipeline to auto optimize jpgs, webp, and avif files as well as insert them via a jinja macro.

Shouldn't be too hard to implement with Pillow but there's bound to be something already built for this.

MelissaAutumn commented 1 month ago

I've added a script to do this, we should look into adding it into the pipline. https://github.com/thunderbird/thunderbird-website/blob/master/tools/compress_assets.py