The next-generation file converter. Open source, fully local* and free forever.
feat: .nef, .cr2 support
not-nullptr5fb9dbcf3530
diff --git a/src/lib/converters/vips.svelte.ts b/src/lib/converters/vips.svelte.tsindex d8b4e41..c8b3c0d 100644--- a/src/lib/converters/vips.svelte.ts+++ b/src/lib/converters/vips.svelte.ts@@ -26,6 +26,8 @@ export class VipsConverter extends Converter {new FormatInfo("cur", true, false),new FormatInfo("ani", true, false),new FormatInfo("heic", true, false),+ new FormatInfo("nef", true, false),+ new FormatInfo("cr2", true, false),new FormatInfo("hdr", true, true),new FormatInfo("jpe", true, true),new FormatInfo("dng", true, false),diff --git a/src/lib/workers/vips.ts b/src/lib/workers/vips.tsindex ad9a6a0..c73abdf 100644--- a/src/lib/workers/vips.ts+++ b/src/lib/workers/vips.ts@@ -17,7 +17,15 @@ const vipsPromise = Vips({const magickPromise = initializeImageMagick(new URL(wasm, import.meta.url));-const magickRequiredFormats = [".dng", ".heic", ".ico", ".cur", ".ani"];+const magickRequiredFormats = [+ ".dng",+ ".heic",+ ".ico",+ ".cur",+ ".ani",+ ".cr2",+ ".nef",+];const unsupportedFrom: string[] = [];const unsupportedTo = [...magickRequiredFormats];