Fixed handling of JPEG

This commit is contained in:
2024-02-23 00:51:49 -07:00
parent acd9ac6cdb
commit 3630bfb0cb
2 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,7 @@ Atridad Lahiji // Tools // Resizer
<h2 class="text-2xl font-extrabold tracking-tight text-white sm:text-[2rem]">Image Resizer</h2>
<form action="/api/resize" method="post" enctype="multipart/form-data" class="flex-col flex gap-4">
Select image to resize:
<input type="file" name="image" accept="image/*"
<input type="file" name="image" accept=".png,.jpg,.jpeg"
class="file-input file-input-bordered file-input-secondary w-full max-w-xs" required />
<br>
New width (px):