gif encode retry loop (up to 5 passes, adjusts resolution/fps until within 15% of target size), aspect ratio enforcement via rust command instead of unreliable cross-window emit

This commit is contained in:
2026-05-27 21:22:59 +03:00
parent 3a631c0c24
commit 2d060fe8f9
4 changed files with 100 additions and 9 deletions
+2 -2
View File
@@ -440,14 +440,14 @@
{#each PRESETS as [w, h, label]}
<button class="chip" onclick={() => {
aspectLock = w / h
emit("overlay-aspect-lock", { ratio: aspectLock })
api.setOverlayAspect(aspectLock)
api.setOverlaySize(w, h)
}}>{label}</button>
{/each}
{#if aspectLock !== null}
<button class="chip unlock" onclick={() => {
aspectLock = null
emit("overlay-aspect-lock", { ratio: null })
api.setOverlayAspect(null)
}}>Unlock</button>
{/if}
</div>