gif color count slider (2-256) and dithering control in editing screen, both wired through export/preview pipeline
This commit is contained in:
+4
-2
@@ -116,6 +116,8 @@ export type ExportRequest = {
|
||||
output_path?: string | null
|
||||
crop?: CaptureRect | null
|
||||
gif_budget_mode?: GifBudgetMode
|
||||
gif_dither?: GifDither
|
||||
gif_colors?: number
|
||||
}
|
||||
|
||||
export type ExportResult = {
|
||||
@@ -165,8 +167,8 @@ export const api = {
|
||||
getOverlayRect: () => invoke<CaptureRect>("get_overlay_rect"),
|
||||
extractThumbnails: (fps: number) =>
|
||||
invoke<string[]>("extract_thumbnails", { fps }),
|
||||
renderPreview: (format: Format, fps: number, target_bytes: number, gif_budget_mode?: GifBudgetMode) =>
|
||||
invoke<string>("render_preview", { request: { format, fps, target_bytes, gif_budget_mode } }),
|
||||
renderPreview: (format: Format, fps: number, target_bytes: number, gif_budget_mode?: GifBudgetMode, gif_dither?: GifDither, gif_colors?: number) =>
|
||||
invoke<string>("render_preview", { request: { format, fps, target_bytes, gif_budget_mode, gif_dither, gif_colors } }),
|
||||
defaultOutputPath: (format: Format) =>
|
||||
invoke<string>("default_output_path", { format }),
|
||||
openUrl: (url: string) => invoke<void>("open_url", { url }),
|
||||
|
||||
Reference in New Issue
Block a user