gif retry respects budget priority (resolution=only adjust fps, framerate=only adjust resolution, balanced=adjust both), gif colors factored into size estimate, overlay queries aspect ratio from rust on resize instead of relying on cross-window events

This commit is contained in:
2026-05-27 21:34:52 +03:00
parent 2d060fe8f9
commit 1c89bb6b0f
4 changed files with 44 additions and 38 deletions
+2 -1
View File
@@ -69,7 +69,8 @@
let previewDims = $derived.by(() => {
if (!clip) return ""
if (format === "gif") {
const bpf = 0.2
const colorFactor = Math.sqrt(gifColors / 256)
const bpf = 0.2 * colorFactor
const requestedFps = fps
const aspect = clip.height === 0 ? 16 / 9 : clip.width / clip.height