fix(studio): capture storyboard tiles at review density (#3371)

* fix(studio): capture storyboard tiles at source resolution

* fix(studio): bound storyboard tile captures
This commit is contained in:
James Russo
2026-08-20 15:46:12 -07:00
committed by GitHub
parent 2be5a03b80
commit b4d5abd7b2
6 changed files with 106 additions and 28 deletions
@@ -87,6 +87,9 @@ describe("buildCompositionThumbnailUrl", () => {
expect(buildCompositionThumbnailUrl(base)).not.toContain("output=");
expect(buildCompositionThumbnailUrl({ ...base, output: "source" })).toContain("output=source");
expect(buildCompositionThumbnailUrl({ ...base, output: "storyboard" })).toContain(
"output=storyboard",
);
});
});
@@ -42,10 +42,10 @@ export function buildCompositionThumbnailUrl({
/**
* Capture density. Omitted, the route bounds the image to its preview cap —
* right for the timeline, where thumbnails are small and numerous and their
* decoded bytes are budgeted. `"source"` captures at the composition's own
* dimensions, for the rare surface that shows one poster large enough to read.
* decoded bytes are budgeted. `"storyboard"` caps the longest side at a
* high-density review size; `"source"` uses the composition's own dimensions.
*/
output?: "source";
output?: "source" | "storyboard";
}): string {
const thumbnailBase = previewUrl
.replace("/preview/comp/", "/thumbnail/")