@filens/core 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +33 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9589,6 +9589,26 @@ async function Lh(t, e, r, n, i) {
|
|
|
9589
9589
|
}
|
|
9590
9590
|
}
|
|
9591
9591
|
const gu = [
|
|
9592
|
+
{
|
|
9593
|
+
sourceFormat: "psd",
|
|
9594
|
+
targetFormat: "png"
|
|
9595
|
+
},
|
|
9596
|
+
{
|
|
9597
|
+
sourceFormat: "psb",
|
|
9598
|
+
targetFormat: "png"
|
|
9599
|
+
},
|
|
9600
|
+
{
|
|
9601
|
+
sourceFormat: "ai",
|
|
9602
|
+
targetFormat: "pdf"
|
|
9603
|
+
},
|
|
9604
|
+
{
|
|
9605
|
+
sourceFormat: "eps",
|
|
9606
|
+
targetFormat: "pdf"
|
|
9607
|
+
},
|
|
9608
|
+
{
|
|
9609
|
+
sourceFormat: "ps",
|
|
9610
|
+
targetFormat: "pdf"
|
|
9611
|
+
},
|
|
9592
9612
|
{
|
|
9593
9613
|
sourceFormat: "docx",
|
|
9594
9614
|
targetFormat: "docx"
|
|
@@ -11437,7 +11457,7 @@ function Pu(t) {
|
|
|
11437
11457
|
contentTypes: Ti(n),
|
|
11438
11458
|
conversion: {
|
|
11439
11459
|
required: !0,
|
|
11440
|
-
reason: n === "ppm" ? "PPM images are decoded to PNG in the WASM conversion core" : ["apk", "ipa", "exe", "dll", "mui", "mun", "ico"].includes(n) ? "application icons are extracted to PNG in the WASM conversion core" : i === "png" ? "ICNS files use their embedded PNG icon preview" : "camera RAW files use their embedded JPEG preview"
|
|
11460
|
+
reason: n === "ppm" ? "PPM images are decoded to PNG in the WASM conversion core" : ["psd", "psb"].includes(n) ? "Photoshop files use their saved merged image (8-bit RGB or grayscale) in the WASM conversion core" : ["apk", "ipa", "exe", "dll", "mui", "mun", "ico"].includes(n) ? "application icons are extracted to PNG in the WASM conversion core" : i === "png" ? "ICNS files use their embedded PNG icon preview" : "camera RAW files use their embedded JPEG preview"
|
|
11441
11461
|
}
|
|
11442
11462
|
}) : k([n], Bu(i), i, {
|
|
11443
11463
|
targetFormat: i,
|
|
@@ -11458,6 +11478,8 @@ function Bu(t) {
|
|
|
11458
11478
|
}
|
|
11459
11479
|
function Ou(t) {
|
|
11460
11480
|
switch (t) {
|
|
11481
|
+
case "pdf":
|
|
11482
|
+
return "AI, EPS and PS artwork uses vector PDF; PostScript interpretation omits built-in font outlines";
|
|
11461
11483
|
case "docx":
|
|
11462
11484
|
return "legacy or compatible text documents are normalized to DOCX";
|
|
11463
11485
|
case "xlsx":
|
|
@@ -11468,6 +11490,16 @@ function Ou(t) {
|
|
|
11468
11490
|
}
|
|
11469
11491
|
function Ti(t) {
|
|
11470
11492
|
switch (t) {
|
|
11493
|
+
case "psd":
|
|
11494
|
+
return ["image/vnd.adobe.photoshop", "image/x-photoshop"];
|
|
11495
|
+
case "psb":
|
|
11496
|
+
return ["image/vnd.adobe.photoshop", "image/x-photoshop"];
|
|
11497
|
+
case "ai":
|
|
11498
|
+
return ["application/illustrator", "application/vnd.adobe.illustrator"];
|
|
11499
|
+
case "eps":
|
|
11500
|
+
return ["application/eps", "application/x-eps", "image/x-eps"];
|
|
11501
|
+
case "ps":
|
|
11502
|
+
return ["application/postscript"];
|
|
11471
11503
|
case "ppm":
|
|
11472
11504
|
return ["image/x-portable-pixmap"];
|
|
11473
11505
|
case "apk":
|