Skip to content

Images: convert inline body images to WebP - #72

Merged
rivassec merged 1 commit into
mainfrom
inline-images-webp
Sep 12, 2026
Merged

Images: convert inline body images to WebP#72
rivassec merged 1 commit into
mainfrom
inline-images-webp

Conversation

@rivassec

Copy link
Copy Markdown
Owner

What

Convert inline body images in three posts to WebP to cut page weight. Cover and OG images are untouched (kept PNG for social-scraper compatibility).

Converted (inline body images only)

Post Image Before After Mode
venezuela-twitter-proxy-osint-final who-is-chavezcandanga-com.jpg -> .webp 93.4 KB 64.2 KB lossy q82, method 6
venezuela-twitter-proxy-osint-final chavezcandanga-web.jpg -> .webp 140.7 KB 109.1 KB lossy q82, method 6
leap-second-chaos-2012 leap_second_monotonic_vs_wall_clock.png -> .webp 33.1 KB 23.3 KB lossless (see note)

Old originals git rm'd after confirming nothing else in content/, themes/, or plugins/ referenced them. Alt text preserved exactly (image-alt guard passes).

Note on the leap-second chart

That image is a palette-mode (mode=P) line chart, not a photo. The requested lossy encoding (quality=82, method=6) grew it to 63.5 KB and blurred the lines - the opposite of the goal. It was encoded as lossless WebP instead: 23.3 KB, smaller than the PNG with no quality loss. The two photographic JPEG screenshots used lossy q82 as specified.

Not converted (intentionally skipped)

  • teensy-efi-bruteforce-rig - the only inline image in teensy-efi-bruteforce-hours-late.md is already .webp; nothing to do.
  • No inline image doubled as a Cover: or Og_image: anywhere in content/ (checked the whole tree). Nothing skipped on that basis.

Weight delta

Total content/images weight: 1661.5 KB -> 1591.0 KB (-70.6 KB).

Verification

  • Build: pelican content -o output -s publishconf.py clean; all three .webp files land in output/images/ and the built HTML references them.
  • Guards pass: check_image_alt.py, check_image_budget.py (47 images within budget), check_link_graph.py (21 posts, 0 issues), check_em_dashes.py.

Convert inline body images in three posts to WebP to cut page weight.
Cover and OG images are untouched (kept PNG for social-scraper compatibility).

- venezuela-twitter-proxy-osint-final: who-is-chavezcandanga-com.jpg (93.4 KB)
  and chavezcandanga-web.jpg (140.7 KB) -> WebP q82 (64.2 KB / 109.1 KB).
- leap-second-chaos-2012: leap_second_monotonic_vs_wall_clock.png (33.1 KB)
  is a palette-mode line chart; lossy q82 grew it to 63.5 KB and blurred the
  lines, so it was encoded as lossless WebP (23.3 KB) instead - smaller with
  no quality loss.

Alt text preserved exactly. Total content/images weight 1661.5 KB -> 1591.0 KB
(-70.6 KB).
@rivassec
rivassec merged commit e74737b into main Sep 12, 2026
17 checks passed
@rivassec
rivassec deleted the inline-images-webp branch September 12, 2026 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant