MCPcopy Create free account
hub / github.com/CapSoftware/Cap / importImagePath

Function importImagePath

apps/desktop/src/utils/importMedia.ts:48–56  ·  view source on GitHub ↗
(
	sourcePath: string,
	options?: ImportOptions,
)

Source from the content-addressed store, hash-verified

46};
47
48export const importImagePath = async (
49 sourcePath: string,
50 options?: ImportOptions,
51) => {
52 const imagePath = await invoke<string>("start_image_import", { sourcePath });
53 await commands.showWindow({ ScreenshotEditor: { path: imagePath } });
54 await maybeHideCurrentWindow(options);
55 return imagePath;
56};
57
58export const importVideoFromPicker = async (options?: ImportOptions) => {
59 const result = await dialog.open({

Callers 1

importImageFromPickerFunction · 0.85

Calls 1

maybeHideCurrentWindowFunction · 0.85

Tested by

no test coverage detected