From e6a99a41417d34a34256b1b68f0c8b697ba7c219 Mon Sep 17 00:00:00 2001 From: jason Date: Sun, 8 Mar 2026 17:06:58 -0500 Subject: [PATCH] Add drag & drop, smart presets, and keyboard shortcuts --- frontend/src/App.svelte | 384 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 354 insertions(+), 30 deletions(-) diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index 3df9264..b3b072f 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -1,4 +1,5 @@ @@ -122,15 +229,54 @@

PNGer

Modern PNG Editor & Resizer

- +
+ + +
+ + {#if showShortcuts} + + {/if} +
@@ -138,30 +284,74 @@

Upload & Settings

- +
- + + +
+ + +
+ {#if file} -
- {file.name} - - ({formatFileSize(file.size)}) - - -
+ {/if}
+ + {#if file} +
+ +
+ {#each PRESETS as preset} + + {/each} +
+
+ {/if} +

Dimensions

@@ -258,6 +448,12 @@ ⬇️ Transform & Download {/if} + + {#if file} +

+ Press Enter to download +

+ {/if}
@@ -271,6 +467,7 @@

🖼️

Upload an image to see live preview

+

Drag & drop, click to browse, or paste with Ctrl+V

{:else if showPreview} @@ -336,4 +533,131 @@ {/if} - \ No newline at end of file + + + \ No newline at end of file