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 an image optimizer to the build pipeline #524

Open
MelissaAutumn opened this issue Nov 16, 2023 · 1 comment
Open

Add an image optimizer to the build pipeline #524

MelissaAutumn opened this issue Nov 16, 2023 · 1 comment
Assignees

Comments

@MelissaAutumn
Copy link
Member

MelissaAutumn commented Nov 16, 2023

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
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant