Browse Source

Add desc and fix error message for "Extract EXIF"

toby 8 years ago
parent
commit
ee25df0c28
2 changed files with 6 additions and 1 deletions
  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": {
     "Extract EXIF": {
         description: [
         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"),
         ].join("\n"),
         run: Image.runEXIF,
         run: Image.runEXIF,
         inputType: "byteArray",
         inputType: "byteArray",

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

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