mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-07 10:06:21 +00:00
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:
@@ -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/")
|
||||
|
||||
Reference in New Issue
Block a user