screenshots
|
Before Width: | Height: | Size: 96 KiB After Width: | Height: | Size: 96 KiB |
|
Before Width: | Height: | Size: 266 KiB After Width: | Height: | Size: 268 KiB |
|
Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 106 KiB |
|
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 103 KiB |
|
Before Width: | Height: | Size: 273 KiB After Width: | Height: | Size: 274 KiB |
|
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 113 KiB |
|
|
@ -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);
|
||||
|
|
|
|||