mirror of https://github.com/VERT-sh/VERT.git
feat: .nef, .cr2 support
This commit is contained in:
parent
b89e55c997
commit
5fb9dbcf35
|
@ -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),
|
||||||
|
|
|
@ -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];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue