Roadmap 0.13, Fixes

FX.830 Tutorial pictures and clip posters are served from the CDN, with this server as the fallback

  • Fix
  • Built · Live

What was wrong: the tutorial pages at /tutorials/<app>/<topic> served their step pictures and clip posters from this server; only the clips came from cdn.getcadcraft.com, because the CDN's media tier took videos only.

What changed: the media tier (CdnMirror) also takes pictures under assets/help/img (webp, png, jpg, gif); other site images stay here. Help::cdnPictures points every tutorial picture and poster at its checked CDN copy (CdnAssets::mediaUrl: copied, hash matched, file here unchanged) and keeps this server's address in data-local; assets/js/help-page.js swaps back to it if the CDN copy fails. All 304 tutorial pictures were registered and copied (hash checked); this server keeps its copies as the fallback. The tutorial-writer agent now copies its new pictures and clips to the CDN after each take and checks the page.

Tested: bin/test-cdn-mirror.php 83/0 (new allowed/refused cases); live pages markupcraft/calibrate-and-measure, bimcraft/draw-walls, cadcraft/plot-pdf print CDN addresses for every picture and poster, none left local; CDN returns 200 image/webp with the exact size, cached a year; in Chromium the pictures load from the CDN, and with the CDN blocked they and the poster load from this server. bin/test-help.php 137/2 (the 2 = modelcraft and civilcraft help.js not rebuilt after their own source edits, not this change). The 3 animated pictures got no admin still frame (ffmpeg cannot read animated WebP); their tutorial pages are not affected.

Add a comment

Community comments

No comments yet

Add detail as we go: how you would use it, files or steps that show the problem, what other programs do. The team reads every comment.

Sign in or create a free account to add a comment.