mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat: add RAW magic bytes to image-engine detect.ts and MIME entries for 17 new RAW formats
This commit is contained in:
@@ -19,6 +19,23 @@ const EXT_TO_MIME: Record<string, string> = {
|
||||
arw: "image/x-sony-arw",
|
||||
orf: "image/x-olympus-orf",
|
||||
rw2: "image/x-panasonic-rw2",
|
||||
cr3: "image/x-canon-cr3",
|
||||
raf: "image/x-fuji-raf",
|
||||
pef: "image/x-pentax-pef",
|
||||
"3fr": "image/x-hasselblad-3fr",
|
||||
iiq: "image/x-phaseone-iiq",
|
||||
srw: "image/x-samsung-srw",
|
||||
x3f: "image/x-sigma-x3f",
|
||||
rwl: "image/x-leica-rwl",
|
||||
nrw: "image/x-nikon-nrw",
|
||||
gpr: "image/x-gopro-gpr",
|
||||
fff: "image/x-hasselblad-fff",
|
||||
mrw: "image/x-minolta-mrw",
|
||||
mef: "image/x-mamiya-mef",
|
||||
kdc: "image/x-kodak-kdc",
|
||||
dcr: "image/x-kodak-dcr",
|
||||
erf: "image/x-epson-erf",
|
||||
ptx: "image/x-pentax-ptx",
|
||||
tga: "image/x-tga",
|
||||
psd: "image/vnd.adobe.photoshop",
|
||||
exr: "image/x-exr",
|
||||
@@ -44,6 +61,23 @@ const MIME_TO_EXT: Record<string, string> = {
|
||||
"image/x-sony-arw": "arw",
|
||||
"image/x-olympus-orf": "orf",
|
||||
"image/x-panasonic-rw2": "rw2",
|
||||
"image/x-canon-cr3": "cr3",
|
||||
"image/x-fuji-raf": "raf",
|
||||
"image/x-pentax-pef": "pef",
|
||||
"image/x-hasselblad-3fr": "3fr",
|
||||
"image/x-phaseone-iiq": "iiq",
|
||||
"image/x-samsung-srw": "srw",
|
||||
"image/x-sigma-x3f": "x3f",
|
||||
"image/x-leica-rwl": "rwl",
|
||||
"image/x-nikon-nrw": "nrw",
|
||||
"image/x-gopro-gpr": "gpr",
|
||||
"image/x-hasselblad-fff": "fff",
|
||||
"image/x-minolta-mrw": "mrw",
|
||||
"image/x-mamiya-mef": "mef",
|
||||
"image/x-kodak-kdc": "kdc",
|
||||
"image/x-kodak-dcr": "dcr",
|
||||
"image/x-epson-erf": "erf",
|
||||
"image/x-pentax-ptx": "ptx",
|
||||
"image/x-tga": "tga",
|
||||
"image/vnd.adobe.photoshop": "psd",
|
||||
"image/x-exr": "exr",
|
||||
|
||||
Reference in New Issue
Block a user