Merge pull request #83 from ashim-hq/feat/extended-format-support

feat: extended image format support (JXL, RAW, ICO, TGA, PSD, EXR, HDR)
This commit is contained in:
Ashim
2026-04-21 10:55:32 +08:00
committed by GitHub
39 changed files with 601 additions and 55 deletions
+1 -2
View File
@@ -45,7 +45,6 @@ const BROWSER_PREVIEWABLE_EXTS = new Set([
"webp",
"svg",
"bmp",
"ico",
"avif",
]);
@@ -251,7 +250,7 @@ export function ToolPage() {
const input = document.createElement("input");
input.type = "file";
input.multiple = true;
input.accept = "image/*,.heic,.heif,.hif";
input.accept = "image/*,.heic,.heif,.hif,.jxl,.dng,.cr2,.nef,.arw,.orf,.rw2,.tga,.psd,.exr,.hdr";
input.onchange = (e) => {
const newFiles = Array.from((e.target as HTMLInputElement).files || []);
if (newFiles.length > 0) addFiles(newFiles);