Repository navigation
perf: compress large images (images/ 44.7 MB -> 36.6 MB) - #332
Merged
Merged
Conversation
Reduce the images/ tree from 44.7 MB to 36.6 MB (43 files changed, -8.1 MB in git blob terms) with no reference or filename changes: - PNGs >200 KB: pngquant --quality=65-90 --speed 1 --strip (256-color quantization; 38 of 52 candidates compressed, 13 skipped for <8% saving or below the quality floor, 1 not a real PNG) - JPEGs (including one mislabeled .png that is actually JPEG): PIL re-encode at quality=82, progressive, optimize (5 of 7) Validation: - PIL verify() passes on every image under images/ (0 broken) - downscaled mean-abs channel diff vs originals on the largest files: 0.12-0.40 / 255 (visually indistinguishable) - no filenames or paths changed, so all QMD references remain valid Co-Authored-By: Claude Code <noreply@anthropic.com>
Contributor
✅ QMD Format CheckNo new QMD tutorial files to check.
|
16 of 21 tasks
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
Lossy-compress the largest images in
images/so every deployed page ships smaller payloads.images/goes from 44.7 MB → 36.6 MB (−8.1 MB in git blob terms, 43 files), on top of PR #331's −95 MB site-level dedup.Method
pngquant --quality=65-90 --speed 1 --strip.pngthat is actually JPEG)quality=82, optimize, progressiveNo file was renamed or moved — all existing QMD references stay valid. Files ≤200 KB untouched.
Validation
PIL verify()passes on all images underimages/(0 broken)*.pq.png,*.rej)Wordcloud_plot1.png709K→204K (−72%),AreaChart_app3.png1181K→353K (−71%),Wordcloud_demo.png1152K→373K (−68%)Context
Part of #306 (repo/deploy size reduction), following #331 (zh site_libs/images dedup, −75 MB per deploy artifact).
🤖 Generated with Claude Code