Repository navigation
fix(talk): rasterize slides at 2x and trim the speaker links - #478
Merged
Merged
Conversation
Slides rasterize at a 3200 px long edge (2x of the 1600x900 page), webp q80, 500 KB cap, so a slide shown wider than 800 CSS px stays sharp on a 2x screen. post-check T5 accepts 1200 to 3200 px and 500 KB. compress-media.sh keeps 3200 px for slides, or media-sync would shrink them back to 1600 on merge. The speaker slide renders two links at most; tieubao keeps truonghan.com and github.com/tieubao.
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
post-check.mjsT5 accepts a long edge of 1200 to 3200 px and 500 KB. Rule 45 inmedia-standard.md, the T5 row inpost-rubric.md,contribute-to-memo.md,publish-a-talk.md, the README media line, and thetalk-build.mjsheader match.compress-media.shkeeps a 3200 px edge and a 500 KB warning forassets/*/slides/slide-*. Without this, media-sync would shrink every slide back to 1600 px on merge and the fix would not reach the site.fillProfilesintalk-build.mjs, sinceprofile.htmlonly holds the placeholder).speakers/tieubao.jsonkeepstruonghan.comandgithub.com/tieubao.og.pngstays 1200x630. No existing deck's rasters are rebuilt or touched.Cap data
Reference deck
publish-a-talk(13 slides) built in a scratch copy, rasterized from itsdeck.pdfat 3200 px, webp q80:The cap is 500 KB: about 5x the reference maximum, for screenshot-heavy slides, and 40 slides at the cap stay under the 25 MB per-post limit.
Test plan
node --test _meta/scripts/post-check-talk.test.mjs _meta/scripts/talk-build-meta.test.mjs: 28 pass, 0 fail (two new T5 cases: 3200 px passes, 4000 px warns)talk-build.mjs --init --speaker tieubao:slide-02.webpis 3200x1800,og.png1200x630, profile shows two linksWARN T5 ... slide-01.webp is 4000x2250; the long edge is 1200 to 3200 px; a 3200 px slide beside it does not warncompress-media.sh: a 3200 px slide stays 3200 px, an ordinary image still caps at 1600 pxFollow-up (not in this PR)
Existing decks keep their 1600 px rasters until someone reruns
talk-build.mjson them. The reference deck's owndeck-srcslides 05 and 11 still say "1600, 200 KB"; they change with a rebuild of that deck.