Skip to content

Add image optimization to WebP format#113

Merged
mrbiggred merged 2 commits intomainfrom
feature/compress-all-images
May 4, 2026
Merged

Add image optimization to WebP format#113
mrbiggred merged 2 commits intomainfrom
feature/compress-all-images

Conversation

@mrbiggred
Copy link
Copy Markdown
Member

@mrbiggred mrbiggred commented Apr 24, 2026

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:

Summary: 91 converted, 0 skipped, 0 failed
Total size: 58.02 MB → 7.28 MB (-87.4%)
Saved: 50.74 MB

The full output of the run can be found here: out.txt

@mrbiggred mrbiggred self-assigned this Apr 24, 2026
@mrbiggred mrbiggred requested a review from Copilot April 24, 2026 16:34
@mrbiggred mrbiggred added the refactoring Changes that aren't noticable by the user label Apr 24, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.sh to batch-convert images under docs/, rewrite references, and remove originals.
  • Updated mkdocs.yml, author metadata, and many markdown pages to reference .webp assets.
  • Added many new .webp files (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.

Comment thread scripts/optimize_all_images.sh
Comment thread scripts/optimize_all_images.sh
Comment thread scripts/optimize_all_images.sh
@mrbiggred mrbiggred merged commit 2fbcfa3 into main May 4, 2026
8 checks passed
@mrbiggred mrbiggred deleted the feature/compress-all-images branch May 4, 2026 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Changes that aren't noticable by the user

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants