screenshots

This commit is contained in:
Timofey Koolin 2026-04-12 15:33:36 +03:00
parent fe82823343
commit 4cdcd2b0e4
7 changed files with 1 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 266 KiB

After

Width:  |  Height:  |  Size: 268 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 KiB

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 273 KiB

After

Width:  |  Height:  |  Size: 274 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 113 KiB

After

Width:  |  Height:  |  Size: 113 KiB

View file

@ -68,7 +68,7 @@ export async function saveScreenshot(
ext: ScreenshotExt = "png",
): Promise<TFile> {
const label = secondsToLabel(seconds).replace(/:/g, "-");
const baseName = `${videoFile.basename}-${label}.${ext}`;
const baseName = `${videoFile.basename}--${label}.${ext}`;
const availablePath = await app.fileManager.getAvailablePathForAttachment(baseName, sourceNotePath);
const path = normalizePath(availablePath);
return await app.vault.createBinary(path, buffer);