From fc0a801e8829b623d62137a3f7cbdec38c6d555a Mon Sep 17 00:00:00 2001 From: cashmere Date: Sun, 26 Jul 2026 21:06:33 +0200 Subject: feat: freeze frame at playhead Enable the timeline toolbar freeze-frame button: capture the composited canvas as PNG, add it as an image media asset, split the video element at the playhead, shift the right part by the freeze duration, and insert a 3-second image element in the gap. Adds RendererManager.captureFrame(), reused by createSnapshot(). Also adds the Nix devshell (flake.nix/flake.lock: bun + nodejs) and AGENTS.md repository guidelines. --- apps/web/src/media/processing.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/web/src/media/processing.ts') diff --git a/apps/web/src/media/processing.ts b/apps/web/src/media/processing.ts index 34ccadbc..21d4f87c 100644 --- a/apps/web/src/media/processing.ts +++ b/apps/web/src/media/processing.ts @@ -39,7 +39,7 @@ const getStorageLimitDescription = ({ })} is safely available in browser storage.`; }; -async function generateImageThumbnail({ +export async function generateImageThumbnail({ imageFile, }: { imageFile: File; -- cgit v1.3.1