simple-photo-gallery 2.0.11-rc.6 → 2.0.11-rc.7
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.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/lib/index.cjs +2 -2
- package/dist/lib/index.cjs.map +1 -1
- package/dist/lib/index.d.cts +2 -2
- package/dist/lib/index.d.ts +2 -2
- package/dist/lib/index.js +2 -2
- package/dist/lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -61,9 +61,9 @@ async function cropAndResizeImage(image, outputPath, width, height, format = "av
|
|
|
61
61
|
withoutEnlargement: true
|
|
62
62
|
}).toFormat(format).toFile(outputPath);
|
|
63
63
|
}
|
|
64
|
-
async function getImageDescription(
|
|
64
|
+
async function getImageDescription(image) {
|
|
65
65
|
try {
|
|
66
|
-
const tags = await ExifReader__default.default.load(
|
|
66
|
+
const tags = await ExifReader__default.default.load(image);
|
|
67
67
|
if (tags.description?.description) return tags.description.description;
|
|
68
68
|
if (tags.ImageDescription?.description) return tags.ImageDescription.description;
|
|
69
69
|
if (tags.UserComment && typeof tags.UserComment === "object" && tags.UserComment !== null && "description" in tags.UserComment) {
|
|
@@ -1172,7 +1172,7 @@ async function waitForUpdateCheck(checkPromise) {
|
|
|
1172
1172
|
// package.json
|
|
1173
1173
|
var package_default = {
|
|
1174
1174
|
name: "simple-photo-gallery",
|
|
1175
|
-
version: "2.0.11-rc.
|
|
1175
|
+
version: "2.0.11-rc.7"};
|
|
1176
1176
|
|
|
1177
1177
|
// src/index.ts
|
|
1178
1178
|
var program = new commander.Command();
|