Merged
Conversation
…mages.py script The script converted all images to webp format.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR converts site imagery to WebP to reduce repository/site asset size and updates MkDocs + markdown references accordingly, adding a helper script to batch-convert and rewrite references.
Changes:
- Added
scripts/optimize_all_images.shto batch-convert images underdocs/, rewrite references, and remove originals. - Updated
mkdocs.yml, author metadata, and many markdown pages to reference.webpassets. - Added many new
.webpfiles (logos, favicons, post images, sponsor/host images).
Reviewed changes
Copilot reviewed 60 out of 242 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| scripts/optimize_all_images.sh | New bulk conversion + reference rewriting script. |
| mkdocs.yml | Switch site logo/favicon references to WebP. |
| docs/.authors.yml | Update author avatar paths to WebP assets. |
| docs/sponsors/index.md | Update sponsor image references to .webp. |
| docs/past-hosts/index.md | Update past-host images to .webp. |
| docs/hosts/index.md | Update host images to .webp. |
| docs/hosts/index (wp export).md.bak | Updated embedded image references to .webp (backup file). |
| docs/posts/2026/04/16/index.md | Update post image reference to .webp. |
| docs/posts/2026/03/31/index.md | Update post image reference to .webp. |
| docs/posts/2026/03/24/index.md | Update post image reference to .webp. |
| docs/posts/2026/03/17/index.md | Update post image reference to .webp. |
| docs/posts/2026/03/13/index.md | Update post image reference to .webp. |
| docs/posts/2026/03/10/index.md | Update post image reference to .webp. |
| docs/posts/2026/03/03/index.md | Update post image reference to .webp. |
| docs/posts/2026/02/24/index.md | Update post image reference to .webp. |
| docs/posts/2026/02/24/0-index.md | Update post image reference to .webp. |
| docs/posts/2026/02/17/index.md | Update post image reference to .webp. |
| docs/posts/2026/02/10/index.md | Update post image reference to .webp. |
| docs/posts/2026/01/27/index.md | Update post image reference to .webp. |
| docs/posts/2026/01/20/index.md | Update post image reference to .webp. |
| docs/posts/2026/01/13/index.md | Update post image reference to .webp. |
| docs/posts/2026/01/12/index.md | Update post image reference to .webp. |
| docs/posts/2026/01/05/index.md | Update post image reference to .webp. |
| docs/posts/2025/12/30/index.md | Update post image reference to .webp. |
| docs/posts/2025/12/16/index.md | Update post image reference to .webp. |
| docs/posts/2025/12/11/index.md | Update post image reference to .webp. |
| docs/posts/2025/12/09/index.md | Update post image reference to .webp. |
| docs/posts/2025/11/25/index.md | Update post image reference to .webp. |
| docs/posts/2025/11/18/index.md | Update post image reference to .webp. |
| docs/posts/2025/11/11/index.md | Update post image reference to .webp. |
| docs/posts/2025/11/04/index.md | Update post image reference to .webp. |
| docs/posts/2025/10/28/index.md | Update post image reference to .webp. |
| docs/posts/2025/10/20/index.md | Update post image reference to .webp. |
| docs/posts/2025/10/14/index.md | Update post image reference to .webp. |
| docs/posts/2025/10/07/index.md | Update post image reference to .webp. |
| docs/posts/2025/09/23/index.md | Update post image reference to .webp. |
| docs/posts/2025/09/16/index.md | Update post image reference to .webp. |
| docs/posts/2025/09/02/index.md | Update post image reference to .webp. |
| docs/posts/2025/08/26/index.md | Update post image reference to .webp. |
| docs/posts/2025/08/12/index.md | Update post image reference to .webp. |
| docs/posts/2025/08/05/index.md | Update post image reference to .webp. |
| docs/posts/2025/07/22/index.md | Update post image reference to .webp. |
| docs/posts/2025/07/15/index.md | Update post image reference to .webp. |
| docs/posts/2025/06/24/index.md | Update post image reference to .webp. |
| docs/posts/2025/06/17/index.md | Update post image reference to .webp. |
| docs/posts/2025/06/10/index.md | Update post image reference to .webp. |
| docs/posts/2025/06/03/index.md | Update post image reference to .webp. |
| docs/posts/2025/05/20/index.md | Update post image reference to .webp. |
| docs/posts/2025/05/06/index.md | Update post image reference to .webp. |
| docs/posts/2025/04/29/index.md | Update post image reference to .webp. |
| docs/posts/2025/04/22/index.md | Update post image reference to .webp. |
| docs/posts/2025/04/15/index.md | Update post image reference to .webp. |
| docs/posts/2025/04/08/index.md | Update post image reference to .webp. |
| docs/posts/2025/04/01/index.md | Update post image reference to .webp. |
| docs/posts/2025/03/18/index.md | Update post image reference to .webp. |
| docs/posts/2025/03/12/index.md | Update post image reference to .webp. |
| docs/posts/2025/02/2025-02-04-developer-education/index.md | Update post image reference to .webp. |
| docs/posts/2024/10/2024-10-08-harvest-time-reaping-the-benefits-of-past-investments/index.md | Update post image reference to .webp. |
| docs/posts/2024/09/2024-09-24-live-from-bsides-maybe/index.md | Update post image reference to .webp. |
| docs/posts/2024/09/2024-09-17-privacy-does-it-matter-anymore/index.md | Update post image reference to .webp. |
| docs/sponsors/smp.webp | Add WebP sponsor image asset. |
| docs/sponsors/logo_ZM_wordmark_bloom.webp | Add WebP sponsor image asset. |
| docs/sponsors/devEd.webp | Add WebP sponsor image asset. |
| docs/sponsors/EdmontonUnlimited.webp | Add WebP sponsor image asset. |
| docs/posts/2025/09/23/512px-Wikisound_Audio_Speaks_Campaign_Metrics_2023_05.webp | Add WebP post image asset. |
| docs/posts/2025/09/02/5BX_Exercise_Timer.webp | Add WebP post image asset. |
| docs/hosts/chris.webp | Add WebP host avatar asset. |
| docs/hosts/norm.webp | Add WebP host avatar asset. |
| docs/hosts/omar.webp | Add WebP host avatar asset. |
| docs/assets/logo/png/weekly_dev_chat_header_with_time.webp | Add WebP logo asset. |
| docs/assets/logo/png/square_logo_light_75.webp | Add WebP logo asset. |
| docs/assets/logo/png/square_logo_light_150.webp | Add WebP logo asset. |
| docs/assets/logo/png/square_logo_dark_75.webp | Add WebP logo asset. |
| docs/assets/logo/png/horizontal_logo_light_75.webp | Add WebP logo asset. |
| docs/assets/logo/png/horizontal_logo_light_150.webp | Add WebP logo asset. |
| docs/assets/logo/png/horizontal_logo_dark_75.webp | Add WebP logo asset. |
| docs/assets/logo/png/horizontal_logo_dark_150.webp | Add WebP logo asset. |
| docs/assets/logo/Favicons/16X16_favicon2.webp | Add WebP favicon asset. |
| docs/assets/logo/Favicons/16X16_favicon1.webp | Add WebP favicon asset. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Created a script (scripts/optimize_all_images.sh) to optimize all the images and ran it on the site. The script uses the scripts/optimize_image.py to convert the image to a wepb format.
The summary of the compression is:
The full output of the run can be found here: out.txt