feat: Support processing RAW format images #17

This commit is contained in:
shiyu
2025-08-25 17:37:50 +08:00
parent a0361db82a
commit 3d0bdd6557
5 changed files with 92 additions and 13 deletions

View File

@@ -7,7 +7,7 @@ export const descriptor: AppDescriptor = {
supported: (entry) => {
if (entry.is_dir) return false;
const ext = entry.name.split('.').pop()?.toLowerCase() || '';
return ['png', 'jpg', 'jpeg', 'gif', 'webp', 'svg', 'bmp', 'ico', 'avif'].includes(ext);
return ['png', 'jpg', 'jpeg', 'gif', 'webp', 'svg', 'bmp', 'ico', 'avif', 'arw', 'cr2', 'cr3', 'nef', 'rw2', 'orf', 'pef', 'dng'].includes(ext);
},
component: ImageViewerApp,
default: true,