gif per-frame deletion with thumbnail strip
This commit is contained in:
+6
-1
@@ -1,6 +1,8 @@
|
||||
import { invoke } from "@tauri-apps/api/core"
|
||||
import { invoke, convertFileSrc } from "@tauri-apps/api/core"
|
||||
import { listen, type UnlistenFn } from "@tauri-apps/api/event"
|
||||
|
||||
export { convertFileSrc }
|
||||
|
||||
export type FfmpegStatus = "ready" | "missing"
|
||||
|
||||
export type AppStatus = {
|
||||
@@ -73,6 +75,7 @@ export type ExportRequest = {
|
||||
target_bytes: number
|
||||
fps: number
|
||||
keep_audio: boolean
|
||||
deleted_frame_indices: number[]
|
||||
}
|
||||
|
||||
export type ExportResult = {
|
||||
@@ -97,6 +100,8 @@ export const api = {
|
||||
showOverlay: () => invoke<void>("show_overlay"),
|
||||
hideOverlay: () => invoke<void>("hide_overlay"),
|
||||
getOverlayRect: () => invoke<CaptureRect>("get_overlay_rect"),
|
||||
extractThumbnails: (fps: number) =>
|
||||
invoke<string[]>("extract_thumbnails", { fps }),
|
||||
}
|
||||
|
||||
export function formatBytes(n: number): string {
|
||||
|
||||
Reference in New Issue
Block a user