Files
NODEDC_SITE/docs/media-optimization.md
T

2.0 KiB

Web media preparation

Mission Core Promo uses content/media-variants.json and the canonical CMS responsive-image adapter, mirrored byte-for-byte in tools/responsive-images.mjs. Both standalone renderers apply it after rendering. CMS also applies the adapter to generated HTML, so subsequent uploads do not require hand-editing individual responsive attributes.

Existing carousel behavior is preserved: lazy/async loading, fixed aspect-ratio containers, explicit sizes 82vw/560px for photography and 86vw/1280px for software screenshots. Logo height stays automatic when intrinsic dimensions are present.

28 referenced raster images have optimized candidates; original bytes are retained under .cms-originals/. Three Hub MOV clips have H.264 MP4 derivatives with faststart and preserved audio. content/media-video-variants.json records source/output hashes. Validation confirms all legacy videos remain directly referenced or represented by a verified derivative and retained original.

Measured file totals, not initial network transfer: raster originals 14,097,170 bytes; largest candidates 8,434,300 bytes; candidates around 768px 2,399,426 bytes. MOV: 85,419,864 → 8,663,870 bytes. Current pages no longer reference the old public media paths; CMS does not prune old remote files.

.cms-originals belongs in portable backups and Git. It is not a cache, is blocked from preview HTTP and does not enter SFTP publication. Desktop Tech/Agent archives remain unchanged. New uploads have unique URLs compatible with long host cache TTLs.

Checks: pages/assets/anchors/JSON-LD; carousel render and interaction regressions; Chrome at 390px DPR 2 and 1440px DPR 1 selects 768px and 1280px software images respectively; no horizontal page overflow or browser exceptions; alpha and original bytes verified through real browser upload. Publication route: import the package into the existing Mission Core site after the CMS image-support release is accepted, then publish using its configured SFTP destination. Local test results do not by themselves establish production deployment.