Images: convert inline body images to WebP - #72
Merged
Conversation
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).
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.
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)
Old originals
git rm'd after confirming nothing else incontent/,themes/, orplugins/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)
.webp; nothing to do.Cover:orOg_image:anywhere incontent/(checked the whole tree). Nothing skipped on that basis.Weight delta
Total
content/imagesweight: 1661.5 KB -> 1591.0 KB (-70.6 KB).Verification
pelican content -o output -s publishconf.pyclean; all three.webpfiles land inoutput/images/and the built HTML references them.check_image_alt.py,check_image_budget.py(47 images within budget),check_link_graph.py(21 posts, 0 issues),check_em_dashes.py.