shots: full-bleed layout (shots.layout bleed) with corner captions, per-size frames, and landscape orientation, on top of the landscape sizes

This commit is contained in:
CRTkafa 2026-10-23 22:45:10 +08:00
parent 9ed1890de8
commit d4cf1ad3a1
11 changed files with 320 additions and 11 deletions

View file

@ -114,7 +114,7 @@ export async function run(ctx: Ctx): Promise<void> {
const dir = resolve(cap.folder ?? shots.frames);
const issues = checkFrameFolder(config, dir, langs);
for (const x of issues) warn('shots', `frames/${x.file}: ${x.msg}`);
if (issues.length) throw new Error(`${issues.length} frame problems in ${dir} (expected <lang>/<phone|tablet>/<name>.png)`);
if (issues.length) throw new Error(`${issues.length} frame problems in ${dir} (expected <lang>/${shots.layout === 'bleed' ? '<size>' : '<phone|tablet>'}/<name>.png)`);
if (dir !== framesDir) warn('shots', `frames are read from shots.frames (${shots.frames}); point it at ${cap.folder} or copy them there`);
return done('shots', `folder frames ok: ${dir}`);
}