gif per-frame deletion with thumbnail strip

This commit is contained in:
2026-05-12 00:15:51 +03:00
parent 7c3ec87b55
commit 3a21d686ae
7 changed files with 258 additions and 7 deletions
+6 -1
View File
@@ -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 {