feat: .nef, .cr2 support

This commit is contained in:
not-nullptr 2025-04-14 21:06:42 +01:00
parent b89e55c997
commit 5fb9dbcf35
2 changed files with 11 additions and 1 deletions

View File

@ -26,6 +26,8 @@ export class VipsConverter extends Converter {
new FormatInfo("cur", true, false), new FormatInfo("cur", true, false),
new FormatInfo("ani", true, false), new FormatInfo("ani", true, false),
new FormatInfo("heic", true, false), new FormatInfo("heic", true, false),
new FormatInfo("nef", true, false),
new FormatInfo("cr2", true, false),
new FormatInfo("hdr", true, true), new FormatInfo("hdr", true, true),
new FormatInfo("jpe", true, true), new FormatInfo("jpe", true, true),
new FormatInfo("dng", true, false), new FormatInfo("dng", true, false),

View File

@ -17,7 +17,15 @@ const vipsPromise = Vips({
const magickPromise = initializeImageMagick(new URL(wasm, import.meta.url)); 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 unsupportedFrom: string[] = [];
const unsupportedTo = [...magickRequiredFormats]; const unsupportedTo = [...magickRequiredFormats];