瀏覽代碼

Add desc and fix error message for "Extract EXIF"

toby 8 年之前
父節點
當前提交
ee25df0c28
共有 2 個文件被更改,包括 6 次插入1 次删除
  1. 5 0
      src/core/config/OperationConfig.js
  2. 1 1
      src/core/operations/Image.js

+ 5 - 0
src/core/config/OperationConfig.js

@@ -3315,6 +3315,11 @@ const OperationConfig = {
     },
     "Extract EXIF": {
         description: [
+            "Extracts EXIF data from an image.",
+            "<br><br>",
+            "EXIF data is metadata embedded in images (JPEG, JPG, TIFF) and audio files.",
+            "<br><br>",
+            "EXIF data from photos usually contains information about the image file itself as well as the device used to create it.",
         ].join("\n"),
         run: Image.runEXIF,
         inputType: "byteArray",

+ 1 - 1
src/core/operations/Image.js

@@ -28,7 +28,7 @@ const Image = {
             lines.unshift(`Found ${numTags} tags.\n`);
             return lines.join("\n");
         } catch (err) {
-            throw "Could not EXIF data from image: " + err;
+            throw "Could not extract EXIF data from image: " + err;
         }
     },
 };