feat: generate multiple thumbs and posters

This commit is contained in:
William Valentin
2026-02-01 14:01:32 -08:00
parent 517e21d0b7
commit d6e6f275b7
3 changed files with 95 additions and 76 deletions

View File

@@ -0,0 +1,18 @@
export type VariantPlanItem = {
kind: "thumb" | "poster";
size: number;
};
export function computeImageVariantPlan(): VariantPlanItem[] {
return [
{ kind: "thumb", size: 256 },
{ kind: "thumb", size: 768 },
];
}
export function computeVideoPosterPlan(): VariantPlanItem[] {
return [
{ kind: "poster", size: 256 },
{ kind: "poster", size: 768 },
];
}