exiftool-vendored
Advanced tools
Comparing version 2.5.0 to 2.6.0
@@ -25,3 +25,3 @@ import { Tags } from "./tags"; | ||
*/ | ||
read(file: string): Promise<Tags>; | ||
read(file: string, args?: string[]): Promise<Tags>; | ||
/** | ||
@@ -28,0 +28,0 @@ * Extract the low-resolution thumbnail in `path/to/image.jpg` |
@@ -36,4 +36,4 @@ "use strict"; | ||
*/ | ||
read(file) { | ||
return this.enqueueTask(tags_task_1.TagsTask.for(file)).promise; | ||
read(file, args) { | ||
return this.enqueueTask(tags_task_1.TagsTask.for(file, args)).promise; | ||
} | ||
@@ -40,0 +40,0 @@ /** |
{ | ||
"name": "exiftool-vendored", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"description": "Efficient, cross-platform access to ExifTool", | ||
@@ -76,9 +76,9 @@ "main": "./dist/exiftool.js", | ||
"linux": [ | ||
"exiftool-vendored.pl@10.40.0" | ||
"exiftool-vendored.pl@10.41.0" | ||
], | ||
"darwin": [ | ||
"exiftool-vendored.pl@10.40.0" | ||
"exiftool-vendored.pl@10.41.0" | ||
], | ||
"win32": [ | ||
"exiftool-vendored.exe@10.40.0" | ||
"exiftool-vendored.exe@10.41.0" | ||
] | ||
@@ -85,0 +85,0 @@ } |
@@ -53,6 +53,8 @@ # exiftool-vendored | ||
// Extract the low-resolution thumbnail in `path/to/image.jpg` | ||
// and write it to `path/to/thumbnail.jpg`. | ||
// Returns a `Promise<void>` | ||
// which contains an error or success status. | ||
// Read tags from image.jpg, but use numeric values for Orientation: | ||
const tagsPromise = exiftool.read("image.jpg", ["-Orientation#"]) | ||
// Extract the low-resolution thumbnail in `path/to/image.jpg`, | ||
// write it to `path/to/thumbnail.jpg`, and return a Promise<void> | ||
// that is fulfilled when the image is extracted: | ||
exiftool.extractThumbnail("path/to/image.jpg", "path/to/thumbnail.jpg"); | ||
@@ -68,4 +70,4 @@ | ||
// and write it to `dest.bin` (which cannot exist already | ||
// and whose parent directory must already exist). | ||
extractBinaryTag("tagname", "path/to/file.exf", "path/to/dest.bin"); | ||
// and whose parent directory must already exist): | ||
exiftool.extractBinaryTag("tagname", "path/to/file.exf", "path/to/dest.bin"); | ||
``` | ||
@@ -160,2 +162,8 @@ | ||
### v2.6.0 | ||
* 🌱 `Orientation` is [rendered as a string by ExifTool](http://www.sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html#n---printConv), | ||
which was surprising (to me, at least). By exposing optional args in `ExifTool.read`, the caller can choose how | ||
ExifTool renders tag values. | ||
### v2.5.0 | ||
@@ -162,0 +170,0 @@ |
128201
253