exiftool-vendored 25.2.0 → 26.1.0
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/CHANGELOG.md +16 -3
- package/RELEASE.md +5 -6
- package/dist/BinaryExtractionTask.d.ts +2 -2
- package/dist/BinaryExtractionTask.js +4 -4
- package/dist/BinaryExtractionTask.js.map +1 -1
- package/dist/BinaryToBufferTask.d.ts +2 -2
- package/dist/BinaryToBufferTask.js +6 -11
- package/dist/BinaryToBufferTask.js.map +1 -1
- package/dist/DefaultExifToolOptions.js +1 -0
- package/dist/DefaultExifToolOptions.js.map +1 -1
- package/dist/ExifTool.d.ts +14 -10
- package/dist/ExifTool.js +43 -20
- package/dist/ExifTool.js.map +1 -1
- package/dist/ExifToolOptions.d.ts +6 -0
- package/dist/ExifToolOptions.js.map +1 -1
- package/dist/ExifToolTask.d.ts +5 -2
- package/dist/ExifToolTask.js +10 -4
- package/dist/ExifToolTask.js.map +1 -1
- package/dist/ReadRawTask.d.ts +2 -2
- package/dist/ReadRawTask.js +4 -4
- package/dist/ReadRawTask.js.map +1 -1
- package/dist/ReadTask.d.ts +5 -4
- package/dist/ReadTask.js +3 -2
- package/dist/ReadTask.js.map +1 -1
- package/dist/RewriteAllTagsTask.d.ts +4 -2
- package/dist/RewriteAllTagsTask.js +5 -5
- package/dist/RewriteAllTagsTask.js.map +1 -1
- package/dist/Tags.d.ts +77 -67
- package/dist/VersionTask.d.ts +2 -2
- package/dist/VersionTask.js +2 -2
- package/dist/VersionTask.js.map +1 -1
- package/dist/Which.d.ts +1 -1
- package/dist/Which.js +19 -7
- package/dist/Which.js.map +1 -1
- package/dist/WriteTask.d.ts +5 -3
- package/dist/WriteTask.js +5 -4
- package/dist/WriteTask.js.map +1 -1
- package/package.json +11 -11
- package/snyk-linux +0 -0
package/dist/Tags.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import { Version } from "./Version";
|
|
|
16
16
|
export interface ExifToolTags {
|
|
17
17
|
/** ☆☆☆☆ ✔ Example: "File is empty" */
|
|
18
18
|
Error?: string;
|
|
19
|
-
/** ★★★★ ✔ Example: 12.
|
|
19
|
+
/** ★★★★ ✔ Example: 12.85 */
|
|
20
20
|
ExifToolVersion?: number;
|
|
21
21
|
/** ☆☆☆☆ Example: "path/to/file.jpg" */
|
|
22
22
|
SourceFile?: string;
|
|
@@ -42,13 +42,13 @@ export interface FileTags {
|
|
|
42
42
|
EncodingProcess?: string;
|
|
43
43
|
/** ★★★★ ✔ Example: "Little-endian (Intel, II)" */
|
|
44
44
|
ExifByteOrder?: string;
|
|
45
|
-
/** ★★★★ ✔ Example: "2024:
|
|
45
|
+
/** ★★★★ ✔ Example: "2024:05:29 12:57:23-07:00" */
|
|
46
46
|
FileAccessDate?: ExifDateTime | string;
|
|
47
47
|
/** ☆☆☆☆ Example: */
|
|
48
48
|
FileCreateDate?: ExifDateTime | string;
|
|
49
|
-
/** ★★★★ ✔ Example: "2024:
|
|
49
|
+
/** ★★★★ ✔ Example: "2024:05:29 12:57:04-07:00" */
|
|
50
50
|
FileInodeChangeDate?: ExifDateTime | string;
|
|
51
|
-
/** ★★★★ ✔ Example: "
|
|
51
|
+
/** ★★★★ ✔ Example: "2024:05:13 10:21:03-07:00" */
|
|
52
52
|
FileModifyDate?: ExifDateTime | string;
|
|
53
53
|
/** ★★★★ ✔ Example: "utc+8_oly.jpg" */
|
|
54
54
|
FileName?: string;
|
|
@@ -115,7 +115,7 @@ export interface CompositeTags {
|
|
|
115
115
|
FlashType?: string;
|
|
116
116
|
/** ★★★★ ✔ Example: "99.7 mm (35 mm equivalent: 554.0 mm)" */
|
|
117
117
|
FocalLength35efl?: string;
|
|
118
|
-
/** ☆☆☆☆ ✔ Example: "
|
|
118
|
+
/** ☆☆☆☆ ✔ Example: "2024:04:21 04:09:51Z" */
|
|
119
119
|
GPSDateTime?: ExifDateTime | string;
|
|
120
120
|
/** ☆☆☆☆ ✔ Example: "7.196465 134.376806666667" */
|
|
121
121
|
GPSPosition?: string;
|
|
@@ -137,7 +137,7 @@ export interface CompositeTags {
|
|
|
137
137
|
OriginalDecisionData?: BinaryField | string;
|
|
138
138
|
/** ☆☆☆☆ Example: "9.9 um" */
|
|
139
139
|
PeakSpectralSensitivity?: string;
|
|
140
|
-
/** ★★★☆ ✔ Example: "(Binary data
|
|
140
|
+
/** ★★★☆ ✔ Example: "(Binary data 315546 bytes, use -b option to extract)" */
|
|
141
141
|
PreviewImage?: BinaryField;
|
|
142
142
|
/** ☆☆☆☆ ✔ Example: "On" */
|
|
143
143
|
RedEyeReduction?: string;
|
|
@@ -157,13 +157,13 @@ export interface CompositeTags {
|
|
|
157
157
|
ShutterCurtainHack?: string;
|
|
158
158
|
/** ★★★★ ✔ Example: "inf" */
|
|
159
159
|
ShutterSpeed?: string;
|
|
160
|
-
/** ★☆☆☆ ✔ Example: "
|
|
160
|
+
/** ★☆☆☆ ✔ Example: "2024:04:20 21:09:51.991-07:00" */
|
|
161
161
|
SubSecCreateDate?: ExifDateTime | string;
|
|
162
|
-
/** ★☆☆☆ ✔ Example: "
|
|
162
|
+
/** ★☆☆☆ ✔ Example: "2024:04:20 21:09:51.991-07:00" */
|
|
163
163
|
SubSecDateTimeOriginal?: ExifDateTime | string;
|
|
164
164
|
/** ☆☆☆☆ Example: */
|
|
165
165
|
SubSecMediaCreateDate?: ExifDateTime | string;
|
|
166
|
-
/** ★☆☆☆ ✔ Example: "
|
|
166
|
+
/** ★☆☆☆ ✔ Example: "2024:04:20 21:09:51-07:00" */
|
|
167
167
|
SubSecModifyDate?: ExifDateTime | string;
|
|
168
168
|
}
|
|
169
169
|
export interface APP1Tags {
|
|
@@ -193,8 +193,6 @@ export interface APP1Tags {
|
|
|
193
193
|
EmbeddedImageType?: string;
|
|
194
194
|
/** ☆☆☆☆ Example: 640 */
|
|
195
195
|
EmbeddedImageWidth?: number;
|
|
196
|
-
/** ☆☆☆☆ Example: 1 */
|
|
197
|
-
Emissivity?: number;
|
|
198
196
|
/** ☆☆☆☆ Example: "46.1 deg" */
|
|
199
197
|
FieldOfView?: string;
|
|
200
198
|
/** ☆☆☆☆ Example: "NOF" */
|
|
@@ -257,7 +255,7 @@ export interface APP1Tags {
|
|
|
257
255
|
PaletteStretch?: number;
|
|
258
256
|
/** ☆☆☆☆ Example: ".basicImgData.objectParams.emissivity" */
|
|
259
257
|
Param0?: string;
|
|
260
|
-
/** ☆☆☆☆ Example: "(Binary data
|
|
258
|
+
/** ☆☆☆☆ Example: "(Binary data 614604 bytes, use -b option to extract)" */
|
|
261
259
|
RawThermalImage?: BinaryField | string;
|
|
262
260
|
/** ☆☆☆☆ Example: 90 */
|
|
263
261
|
RawThermalImageHeight?: number;
|
|
@@ -277,8 +275,6 @@ export interface APP1Tags {
|
|
|
277
275
|
Real2IR?: number;
|
|
278
276
|
/** ☆☆☆☆ Example: "26.7 C" */
|
|
279
277
|
ReflectedApparentTemperature?: string;
|
|
280
|
-
/** ☆☆☆☆ Example: "80.0 %" */
|
|
281
|
-
RelativeHumidity?: string;
|
|
282
278
|
/** ☆☆☆☆ Example: "41 110 240" */
|
|
283
279
|
UnderflowColor?: string;
|
|
284
280
|
}
|
|
@@ -439,6 +435,10 @@ export interface APP14Tags {
|
|
|
439
435
|
export interface APP4Tags {
|
|
440
436
|
/** ☆☆☆☆ ✔ Example: "40 C" */
|
|
441
437
|
AmbientTemperature?: string;
|
|
438
|
+
/** ☆☆☆☆ Example: 1 */
|
|
439
|
+
Emissivity?: number;
|
|
440
|
+
/** ☆☆☆☆ Example: "80.0 %" */
|
|
441
|
+
RelativeHumidity?: string;
|
|
442
442
|
}
|
|
443
443
|
export interface APP5Tags {
|
|
444
444
|
/** ☆☆☆☆ Example: 45 */
|
|
@@ -476,6 +476,8 @@ export interface EXIFTags {
|
|
|
476
476
|
CFAPlaneColor?: string;
|
|
477
477
|
/** ☆☆☆☆ ✔ Example: "2 2" */
|
|
478
478
|
CFARepeatPatternDim?: string;
|
|
479
|
+
/** ☆☆☆☆ Example: 6.1 */
|
|
480
|
+
CameraElevationAngle?: number;
|
|
479
481
|
/** ☆☆☆☆ ✔ Example: "On" */
|
|
480
482
|
ChromaticAberrationCorrection?: string;
|
|
481
483
|
/** ★★★★ ✔ Example: "sRGB" */
|
|
@@ -516,8 +518,6 @@ export interface EXIFTags {
|
|
|
516
518
|
ExifImageHeight?: number;
|
|
517
519
|
/** ★★★★ ✔ Example: 999 */
|
|
518
520
|
ExifImageWidth?: number;
|
|
519
|
-
/** ★★★★ ✔ Example: "Version 2.2" */
|
|
520
|
-
ExifVersion?: string;
|
|
521
521
|
/** ★★★★ ✔ Example: 1 */
|
|
522
522
|
ExposureCompensation?: number;
|
|
523
523
|
/** ★☆☆☆ ✔ Example: 83 */
|
|
@@ -556,11 +556,11 @@ export interface EXIFTags {
|
|
|
556
556
|
GPSAreaInformation?: string;
|
|
557
557
|
/** ☆☆☆☆ ✔ Example: 9 */
|
|
558
558
|
GPSDOP?: number;
|
|
559
|
-
/** ☆☆☆☆ ✔ Example: "
|
|
559
|
+
/** ☆☆☆☆ ✔ Example: "2024:04:21" */
|
|
560
560
|
GPSDateStamp?: ExifDate | string;
|
|
561
561
|
/** ☆☆☆☆ ✔ Example: 86.180049 */
|
|
562
562
|
GPSDestBearing?: number;
|
|
563
|
-
/** ☆☆☆☆ ✔ Example: "
|
|
563
|
+
/** ☆☆☆☆ ✔ Example: "Unknown ()" */
|
|
564
564
|
GPSDestBearingRef?: string;
|
|
565
565
|
/** ☆☆☆☆ ✔ Example: 0.030120052 */
|
|
566
566
|
GPSDestDistance?: number;
|
|
@@ -618,7 +618,7 @@ export interface EXIFTags {
|
|
|
618
618
|
HighISOMultiplierGreen?: number;
|
|
619
619
|
/** ☆☆☆☆ ✔ Example: 1 */
|
|
620
620
|
HighISOMultiplierRed?: number;
|
|
621
|
-
/** ☆☆☆☆ ✔ Example: "iPhone
|
|
621
|
+
/** ☆☆☆☆ ✔ Example: "iPhone 15 Plus" */
|
|
622
622
|
HostComputer?: string;
|
|
623
623
|
/** ★★★★ ✔ Example: 993 */
|
|
624
624
|
ISO?: number;
|
|
@@ -630,7 +630,7 @@ export interface EXIFTags {
|
|
|
630
630
|
InteropIndex?: string;
|
|
631
631
|
/** ★★★★ ✔ Example: "undef undef undef" */
|
|
632
632
|
InteropVersion?: string;
|
|
633
|
-
/** ☆☆☆☆ ✔ Example: "(Binary data
|
|
633
|
+
/** ☆☆☆☆ ✔ Example: "(Binary data 772608 bytes, use -b option to extract)" */
|
|
634
634
|
JpgFromRaw?: BinaryField;
|
|
635
635
|
/** ☆☆☆☆ ✔ Example: 845574 */
|
|
636
636
|
JpgFromRawLength?: number;
|
|
@@ -798,7 +798,7 @@ export interface EXIFTags {
|
|
|
798
798
|
TileByteCounts?: BinaryField | string;
|
|
799
799
|
/** ☆☆☆☆ ✔ Example: 512 */
|
|
800
800
|
TileLength?: number;
|
|
801
|
-
/** ☆☆☆☆ ✔ Example: "(Binary data
|
|
801
|
+
/** ☆☆☆☆ ✔ Example: "(Binary data 507 bytes, use -b option to extract)" */
|
|
802
802
|
TileOffsets?: BinaryField | string;
|
|
803
803
|
/** ☆☆☆☆ ✔ Example: 512 */
|
|
804
804
|
TileWidth?: number;
|
|
@@ -867,7 +867,7 @@ export interface APP6Tags {
|
|
|
867
867
|
* @see https://exiftool.org/TagNames/FlashPix.html
|
|
868
868
|
*/
|
|
869
869
|
export interface FlashPixTags {
|
|
870
|
-
/** ☆☆☆☆ Example: "(Binary data
|
|
870
|
+
/** ☆☆☆☆ Example: "(Binary data 20796 bytes, use -b option to extract)" */
|
|
871
871
|
AudioStream?: BinaryField | string;
|
|
872
872
|
/** ☆☆☆☆ ✔ Example: "Unicode UTF-16, little endian" */
|
|
873
873
|
CodePage?: string;
|
|
@@ -897,7 +897,7 @@ export interface FlashPixTags {
|
|
|
897
897
|
export interface GeolocationTags {
|
|
898
898
|
/** ☆☆☆☆ ✔ Example: 99 */
|
|
899
899
|
GeolocationBearing?: number;
|
|
900
|
-
/** ☆☆☆☆ ✔ Example: "Zürich" */
|
|
900
|
+
/** ☆☆☆☆ ✔ Example: "Zürich (Kreis 4) / Langstrasse" */
|
|
901
901
|
GeolocationCity?: string;
|
|
902
902
|
/** ☆☆☆☆ ✔ Example: "United States" */
|
|
903
903
|
GeolocationCountry?: string;
|
|
@@ -905,15 +905,17 @@ export interface GeolocationTags {
|
|
|
905
905
|
GeolocationCountryCode?: string;
|
|
906
906
|
/** ☆☆☆☆ ✔ Example: "9.60 km" */
|
|
907
907
|
GeolocationDistance?: string;
|
|
908
|
-
/** ☆☆☆☆ ✔ Example: "
|
|
908
|
+
/** ☆☆☆☆ ✔ Example: "PPLX" */
|
|
909
909
|
GeolocationFeatureCode?: string;
|
|
910
|
-
/** ☆☆☆☆ ✔ Example:
|
|
910
|
+
/** ☆☆☆☆ ✔ Example: "Section Of Populated Place" */
|
|
911
|
+
GeolocationFeatureType?: string;
|
|
912
|
+
/** ☆☆☆☆ ✔ Example: 93000 */
|
|
911
913
|
GeolocationPopulation?: number;
|
|
912
914
|
/** ☆☆☆☆ ✔ Example: "7.3397, 134.4733" */
|
|
913
915
|
GeolocationPosition?: string;
|
|
914
916
|
/** ☆☆☆☆ ✔ Example: "Île-de-France" */
|
|
915
917
|
GeolocationRegion?: string;
|
|
916
|
-
/** ☆☆☆☆ ✔ Example: "
|
|
918
|
+
/** ☆☆☆☆ ✔ Example: "Yuzhnyy Administrativnyy Okrug" */
|
|
917
919
|
GeolocationSubregion?: string;
|
|
918
920
|
/** ☆☆☆☆ ✔ Example: "Pacific/Saipan" */
|
|
919
921
|
GeolocationTimeZone?: string;
|
|
@@ -954,7 +956,7 @@ export interface IPTCTags {
|
|
|
954
956
|
Credit?: string;
|
|
955
957
|
/** ☆☆☆☆ ✔ Example: "" */
|
|
956
958
|
DateSent?: string;
|
|
957
|
-
/** ☆☆☆☆ ✔ Example: "
|
|
959
|
+
/** ☆☆☆☆ ✔ Example: "2023:11:07 14:10:21-05:00" */
|
|
958
960
|
DateTimeCreated?: ExifDateTime | string;
|
|
959
961
|
/** ☆☆☆☆ ✔ Example: "" */
|
|
960
962
|
Destination?: string;
|
|
@@ -1349,7 +1351,7 @@ export interface MakerNotesTags {
|
|
|
1349
1351
|
AEAperture?: number;
|
|
1350
1352
|
/** ☆☆☆☆ ✔ Example: 8 */
|
|
1351
1353
|
AEApertureSteps?: number;
|
|
1352
|
-
/** ☆☆☆☆ ✔ Example:
|
|
1354
|
+
/** ☆☆☆☆ ✔ Example: 90 */
|
|
1353
1355
|
AEAverage?: number;
|
|
1354
1356
|
/** ☆☆☆☆ ✔ Example: "On" */
|
|
1355
1357
|
AEBAutoCancel?: string;
|
|
@@ -1407,7 +1409,7 @@ export interface MakerNotesTags {
|
|
|
1407
1409
|
AESetting?: string;
|
|
1408
1410
|
/** ☆☆☆☆ ✔ Example: "Yes" */
|
|
1409
1411
|
AEStable?: string;
|
|
1410
|
-
/** ☆☆☆☆ ✔ Example:
|
|
1412
|
+
/** ☆☆☆☆ ✔ Example: 89 */
|
|
1411
1413
|
AETarget?: number;
|
|
1412
1414
|
/** ☆☆☆☆ Example: "Daylight Fluorescent" */
|
|
1413
1415
|
AEWhiteBalance?: string;
|
|
@@ -1463,7 +1465,7 @@ export interface MakerNotesTags {
|
|
|
1463
1465
|
AFAssistLamp?: string;
|
|
1464
1466
|
/** ☆☆☆☆ ✔ Example: "No" */
|
|
1465
1467
|
AFButtonPressed?: string;
|
|
1466
|
-
/** ☆☆☆☆ ✔ Example:
|
|
1468
|
+
/** ☆☆☆☆ ✔ Example: 8 */
|
|
1467
1469
|
AFConfidence?: number;
|
|
1468
1470
|
/** ☆☆☆☆ ✔ Example: "Case 11" */
|
|
1469
1471
|
AFConfigTool?: string;
|
|
@@ -1483,10 +1485,6 @@ export interface MakerNotesTags {
|
|
|
1483
1485
|
AFFineTuneIndex?: string;
|
|
1484
1486
|
/** ☆☆☆☆ ✔ Example: "Off" */
|
|
1485
1487
|
AFIlluminator?: string;
|
|
1486
|
-
/** ★☆☆☆ ✔ Example: 88 */
|
|
1487
|
-
AFImageHeight?: number;
|
|
1488
|
-
/** ★☆☆☆ ✔ Example: 8688 */
|
|
1489
|
-
AFImageWidth?: number;
|
|
1490
1488
|
/** ☆☆☆☆ ✔ Example: "0400" */
|
|
1491
1489
|
AFInfo2Version?: string;
|
|
1492
1490
|
/** ☆☆☆☆ ✔ Example: "90 ms" */
|
|
@@ -1511,6 +1509,8 @@ export interface MakerNotesTags {
|
|
|
1511
1509
|
AFOnAELockButtonSwitch?: string;
|
|
1512
1510
|
/** ☆☆☆☆ ✔ Example: "AF-On" */
|
|
1513
1511
|
AFOnButton?: string;
|
|
1512
|
+
/** ☆☆☆☆ ✔ Example: "682 1 53" */
|
|
1513
|
+
AFPerformance?: string;
|
|
1514
1514
|
/** ★★☆☆ ✔ Example: "Upper-right" */
|
|
1515
1515
|
AFPoint?: string;
|
|
1516
1516
|
/** ☆☆☆☆ ✔ Example: "Standard" */
|
|
@@ -1603,7 +1603,7 @@ export interface MakerNotesTags {
|
|
|
1603
1603
|
AccelerometerX?: number;
|
|
1604
1604
|
/** ☆☆☆☆ ✔ Example: 80 */
|
|
1605
1605
|
AccelerometerY?: number;
|
|
1606
|
-
/** ☆☆☆☆ ✔ Example:
|
|
1606
|
+
/** ☆☆☆☆ ✔ Example: 56 */
|
|
1607
1607
|
AccelerometerZ?: number;
|
|
1608
1608
|
/** ☆☆☆☆ ✔ Example: "00:00" */
|
|
1609
1609
|
AccessorySerialNumber?: string;
|
|
@@ -1861,7 +1861,7 @@ export interface MakerNotesTags {
|
|
|
1861
1861
|
CameraISO?: string;
|
|
1862
1862
|
/** ☆☆☆☆ ✔ Example: "Unknown (155)" */
|
|
1863
1863
|
CameraOrientation?: string;
|
|
1864
|
-
/** ☆☆☆☆ ✔ Example: "(Binary data
|
|
1864
|
+
/** ☆☆☆☆ ✔ Example: "(Binary data 8412 bytes, use -b option to extract)" */
|
|
1865
1865
|
CameraParameters?: BinaryField | string;
|
|
1866
1866
|
/** ☆☆☆☆ ✔ Example: "User Defined 3" */
|
|
1867
1867
|
CameraPictureStyle?: string;
|
|
@@ -2197,7 +2197,7 @@ export interface MakerNotesTags {
|
|
|
2197
2197
|
DSPFirmwareVersion?: string;
|
|
2198
2198
|
/** ☆☆☆☆ ✔ Example: "Yes" */
|
|
2199
2199
|
DarkFocusEnvironment?: string;
|
|
2200
|
-
/** ★★☆☆ ✔ Example: "(Binary data
|
|
2200
|
+
/** ★★☆☆ ✔ Example: "(Binary data 114 bytes, use -b option to extract)" */
|
|
2201
2201
|
DataDump?: BinaryField | string;
|
|
2202
2202
|
/** ☆☆☆☆ ✔ Example: 8289 */
|
|
2203
2203
|
DataScaling?: number;
|
|
@@ -2225,7 +2225,7 @@ export interface MakerNotesTags {
|
|
|
2225
2225
|
DestinationCityCode?: string;
|
|
2226
2226
|
/** ☆☆☆☆ ✔ Example: "Yes" */
|
|
2227
2227
|
DestinationDST?: string;
|
|
2228
|
-
/** ☆☆☆☆ ✔ Example:
|
|
2228
|
+
/** ☆☆☆☆ ✔ Example: 200 */
|
|
2229
2229
|
DevelopmentDynamicRange?: number;
|
|
2230
2230
|
/** ☆☆☆☆ ✔ Example: "SMX Video Camera" */
|
|
2231
2231
|
DeviceType?: string;
|
|
@@ -2675,7 +2675,7 @@ export interface MakerNotesTags {
|
|
|
2675
2675
|
FocusBracket?: number;
|
|
2676
2676
|
/** ☆☆☆☆ ✔ Example: 0 */
|
|
2677
2677
|
FocusBracketStepSize?: number;
|
|
2678
|
-
/**
|
|
2678
|
+
/** ★☆☆☆ ✔ Example: "Single" */
|
|
2679
2679
|
FocusContinuous?: string;
|
|
2680
2680
|
/** ☆☆☆☆ ✔ Example: "Enable" */
|
|
2681
2681
|
FocusDisplayAIServoAndMF?: string;
|
|
@@ -2691,7 +2691,7 @@ export interface MakerNotesTags {
|
|
|
2691
2691
|
FocusHoldButton?: string;
|
|
2692
2692
|
/** ☆☆☆☆ ✔ Example: "0100" */
|
|
2693
2693
|
FocusInfoVersion?: string;
|
|
2694
|
-
/** ☆☆☆☆ ✔ Example: "9504 6336
|
|
2694
|
+
/** ☆☆☆☆ ✔ Example: "9504 6336 6029 2587" */
|
|
2695
2695
|
FocusLocation?: string;
|
|
2696
2696
|
/** ☆☆☆☆ ✔ Example: "Yes" */
|
|
2697
2697
|
FocusLocked?: string;
|
|
@@ -2761,8 +2761,6 @@ export interface MakerNotesTags {
|
|
|
2761
2761
|
FreeBytes?: BinaryField | string;
|
|
2762
2762
|
/** ☆☆☆☆ ✔ Example: 805 */
|
|
2763
2763
|
FreeMemoryCardImages?: number;
|
|
2764
|
-
/** ☆☆☆☆ Example: "Yes" */
|
|
2765
|
-
FrontFacingCamera?: string;
|
|
2766
2764
|
/** ★☆☆☆ ✔ Example: "Red-eye reduction" */
|
|
2767
2765
|
FujiFlashMode?: string;
|
|
2768
2766
|
/** ☆☆☆☆ ✔ Example: "X100V_0100" */
|
|
@@ -2827,9 +2825,9 @@ export interface MakerNotesTags {
|
|
|
2827
2825
|
HDR?: string;
|
|
2828
2826
|
/** ☆☆☆☆ ✔ Example: "Natural" */
|
|
2829
2827
|
HDREffect?: string;
|
|
2830
|
-
/** ☆☆☆☆ ✔ Example:
|
|
2828
|
+
/** ☆☆☆☆ ✔ Example: 1.7904162 */
|
|
2831
2829
|
HDRGain?: number;
|
|
2832
|
-
/** ☆☆☆☆ ✔ Example: 1.
|
|
2830
|
+
/** ☆☆☆☆ ✔ Example: 1.568873 */
|
|
2833
2831
|
HDRHeadroom?: number;
|
|
2834
2832
|
/** ☆☆☆☆ ✔ Example: "Unknown (2)" */
|
|
2835
2833
|
HDRImageType?: string;
|
|
@@ -3097,7 +3095,7 @@ export interface MakerNotesTags {
|
|
|
3097
3095
|
LensFStops?: number;
|
|
3098
3096
|
/** ☆☆☆☆ Example: "RL8 :V01390000 " */
|
|
3099
3097
|
LensFirmware?: string;
|
|
3100
|
-
/** ☆☆☆☆ ✔ Example: "Ver.
|
|
3098
|
+
/** ☆☆☆☆ ✔ Example: "Ver.04.000" */
|
|
3101
3099
|
LensFirmwareVersion?: string;
|
|
3102
3100
|
/** ☆☆☆☆ ✔ Example: "70.0 mm" */
|
|
3103
3101
|
LensFocalLength?: string;
|
|
@@ -3143,7 +3141,7 @@ export interface MakerNotesTags {
|
|
|
3143
3141
|
LensType3?: string;
|
|
3144
3142
|
/** ☆☆☆☆ ✔ Example: 2 */
|
|
3145
3143
|
LensTypeMake?: number;
|
|
3146
|
-
/** ☆☆☆☆ ✔ Example: "
|
|
3144
|
+
/** ☆☆☆☆ ✔ Example: "41 10" */
|
|
3147
3145
|
LensTypeModel?: string;
|
|
3148
3146
|
/** ☆☆☆☆ ✔ Example: "98%" */
|
|
3149
3147
|
LensZoomPosition?: string;
|
|
@@ -3171,8 +3169,10 @@ export interface MakerNotesTags {
|
|
|
3171
3169
|
LinearityUpperMargin?: number;
|
|
3172
3170
|
/** ☆☆☆☆ Example: "Off" */
|
|
3173
3171
|
LinkAEToAFPoint?: string;
|
|
3174
|
-
/** ☆☆☆☆ ✔ Example:
|
|
3172
|
+
/** ☆☆☆☆ ✔ Example: 8595224600 */
|
|
3175
3173
|
LivePhotoVideoIndex?: number;
|
|
3174
|
+
/** ☆☆☆☆ Example: "On" */
|
|
3175
|
+
LiveView?: string;
|
|
3176
3176
|
/** ☆☆☆☆ ✔ Example: "Wide Area" */
|
|
3177
3177
|
LiveViewAF?: string;
|
|
3178
3178
|
/** ☆☆☆☆ ✔ Example: "Face-Priority" */
|
|
@@ -3209,7 +3209,7 @@ export interface MakerNotesTags {
|
|
|
3209
3209
|
LongExposureNoiseReduction?: string;
|
|
3210
3210
|
/** ☆☆☆☆ ✔ Example: "On" */
|
|
3211
3211
|
LowLightAF?: string;
|
|
3212
|
-
/** ☆☆☆☆ ✔ Example: 0.
|
|
3212
|
+
/** ☆☆☆☆ ✔ Example: 0.014752804 */
|
|
3213
3213
|
LuminanceNoiseAmplitude?: number;
|
|
3214
3214
|
/** ☆☆☆☆ Example: "+0.500" */
|
|
3215
3215
|
LuminanceNoiseReduction?: string;
|
|
@@ -3299,7 +3299,7 @@ export interface MakerNotesTags {
|
|
|
3299
3299
|
MenuButtonReturn?: string;
|
|
3300
3300
|
/** ☆☆☆☆ ✔ Example: "20 s" */
|
|
3301
3301
|
MenuMonitorOffTime?: string;
|
|
3302
|
-
/** ☆☆☆☆ ✔ Example:
|
|
3302
|
+
/** ☆☆☆☆ ✔ Example: 5 */
|
|
3303
3303
|
MergedImages?: number;
|
|
3304
3304
|
/** ☆☆☆☆ ✔ Example: "THm211000000000" */
|
|
3305
3305
|
MetaVersion?: string;
|
|
@@ -3627,6 +3627,8 @@ export interface MakerNotesTags {
|
|
|
3627
3627
|
PhotoShootingMenuBankImageArea?: string;
|
|
3628
3628
|
/** ☆☆☆☆ ✔ Example: "Vivid" */
|
|
3629
3629
|
PhotoStyle?: string;
|
|
3630
|
+
/** ☆☆☆☆ ✔ Example: 1 */
|
|
3631
|
+
PhotosAppFeatureFlags?: number;
|
|
3630
3632
|
/** ☆☆☆☆ ✔ Example: "Quick Adjust" */
|
|
3631
3633
|
PictureControlAdjust?: string;
|
|
3632
3634
|
/** ☆☆☆☆ ✔ Example: "Vivid" */
|
|
@@ -3737,7 +3739,7 @@ export interface MakerNotesTags {
|
|
|
3737
3739
|
QuickControlDialInMeter?: string;
|
|
3738
3740
|
/** ☆☆☆☆ Example: "Off" */
|
|
3739
3741
|
QuickShot?: string;
|
|
3740
|
-
/** ☆☆☆☆ ✔ Example: "
|
|
3742
|
+
/** ☆☆☆☆ ✔ Example: "n/a" */
|
|
3741
3743
|
RAWFileType?: string;
|
|
3742
3744
|
/** ☆☆☆☆ ✔ Example: "Varies With Rotation Speed" */
|
|
3743
3745
|
RFLensMFFocusRingSensitivity?: string;
|
|
@@ -3971,7 +3973,7 @@ export interface MakerNotesTags {
|
|
|
3971
3973
|
SelfTimerShotInterval?: string;
|
|
3972
3974
|
/** ☆☆☆☆ ✔ Example: "2 s" */
|
|
3973
3975
|
SelfTimerTime?: string;
|
|
3974
|
-
/** ☆☆☆☆
|
|
3976
|
+
/** ☆☆☆☆ ✔ Example: {"_0":1,"_1":0,"_2":0,"_3":0} */
|
|
3975
3977
|
SemanticStyle?: Struct;
|
|
3976
3978
|
/** ☆☆☆☆ Example: true */
|
|
3977
3979
|
SemanticStylePreset?: boolean;
|
|
@@ -4131,7 +4133,7 @@ export interface MakerNotesTags {
|
|
|
4131
4133
|
ShutterSpeedSetting?: string;
|
|
4132
4134
|
/** ☆☆☆☆ ✔ Example: "Normal" */
|
|
4133
4135
|
ShutterType?: string;
|
|
4134
|
-
/** ☆☆☆☆ ✔ Example:
|
|
4136
|
+
/** ☆☆☆☆ ✔ Example: 63.176895 */
|
|
4135
4137
|
SignalToNoiseRatio?: number;
|
|
4136
4138
|
/** ☆☆☆☆ ✔ Example: "On" */
|
|
4137
4139
|
SilentPhotography?: string;
|
|
@@ -4157,7 +4159,7 @@ export interface MakerNotesTags {
|
|
|
4157
4159
|
SoftFocusFilter?: string;
|
|
4158
4160
|
/** ☆☆☆☆ ✔ Example: "n/a" */
|
|
4159
4161
|
SoftSkinEffect?: string;
|
|
4160
|
-
/** ☆☆☆☆ ✔ Example: "
|
|
4162
|
+
/** ☆☆☆☆ ✔ Example: "2023:05:24 15:18:25" */
|
|
4161
4163
|
SonyDateTime?: ExifDateTime | string;
|
|
4162
4164
|
/** ☆☆☆☆ ✔ Example: "1/82" */
|
|
4163
4165
|
SonyExposureTime?: string;
|
|
@@ -4293,9 +4295,9 @@ export interface MakerNotesTags {
|
|
|
4293
4295
|
TimeLapseShotNumber?: number;
|
|
4294
4296
|
/** ☆☆☆☆ ✔ Example: "01:48:53.63" */
|
|
4295
4297
|
TimeSincePowerOn?: ExifTime | string;
|
|
4296
|
-
/** ☆☆☆☆ ✔ Example: "2023:
|
|
4298
|
+
/** ☆☆☆☆ ✔ Example: "2023:10:13 04:33:41" */
|
|
4297
4299
|
TimeStamp?: ExifDateTime | string;
|
|
4298
|
-
/**
|
|
4300
|
+
/** ☆☆☆☆ ✔ Example: "-09:00" */
|
|
4299
4301
|
TimeZone?: string;
|
|
4300
4302
|
/** ☆☆☆☆ ✔ Example: "n/a" */
|
|
4301
4303
|
TimeZoneCity?: string;
|
|
@@ -4315,7 +4317,7 @@ export interface MakerNotesTags {
|
|
|
4315
4317
|
ToneCurve?: string;
|
|
4316
4318
|
/** ☆☆☆☆ ✔ Example: "(Binary data 95 bytes, use -b option to extract)" */
|
|
4317
4319
|
ToneCurveMatching?: BinaryField | string;
|
|
4318
|
-
/** ☆☆☆☆ ✔ Example: "(Binary data
|
|
4320
|
+
/** ☆☆☆☆ ✔ Example: "(Binary data 1679 bytes, use -b option to extract)" */
|
|
4319
4321
|
ToneCurveTable?: BinaryField | string;
|
|
4320
4322
|
/** ☆☆☆☆ ✔ Example: "Highlights; 0; -7; 7; Shadows; 0; -7; 7; Midtones; 0; -7;…0; 0; 0" */
|
|
4321
4323
|
ToneLevel?: string;
|
|
@@ -4351,6 +4353,10 @@ export interface MakerNotesTags {
|
|
|
4351
4353
|
UniqueID?: string;
|
|
4352
4354
|
/** ☆☆☆☆ Example: "ZME151000007" */
|
|
4353
4355
|
UnknownNumber?: string;
|
|
4356
|
+
/** ☆☆☆☆ ✔ Example: 4 */
|
|
4357
|
+
UnsharpMaskFineness?: number;
|
|
4358
|
+
/** ☆☆☆☆ ✔ Example: 4 */
|
|
4359
|
+
UnsharpMaskThreshold?: number;
|
|
4354
4360
|
/** ☆☆☆☆ ✔ Example: "Flags 0xf0" */
|
|
4355
4361
|
UsableMeteringModes?: string;
|
|
4356
4362
|
/** ☆☆☆☆ ✔ Example: "Flags 0x3f" */
|
|
@@ -4479,7 +4485,7 @@ export interface MakerNotesTags {
|
|
|
4479
4485
|
WhiteBalanceSetting?: string;
|
|
4480
4486
|
/** ☆☆☆☆ ✔ Example: "Auto" */
|
|
4481
4487
|
WhiteBalanceSetup?: string;
|
|
4482
|
-
/** ☆☆☆☆ ✔ Example: "(Binary data
|
|
4488
|
+
/** ☆☆☆☆ ✔ Example: "(Binary data 2217 bytes, use -b option to extract)" */
|
|
4483
4489
|
WhiteBalanceTable?: BinaryField | string;
|
|
4484
4490
|
/** ☆☆☆☆ ✔ Example: "Auto" */
|
|
4485
4491
|
WhiteBalanceTemperature?: string;
|
|
@@ -4578,7 +4584,7 @@ export interface XMPTags {
|
|
|
4578
4584
|
CameraProfileDigest?: string;
|
|
4579
4585
|
/** ☆☆☆☆ Example: "Rear" */
|
|
4580
4586
|
CameraUnit?: string;
|
|
4581
|
-
/** ☆☆☆☆ ✔ Example: [{"DepthMap":{"ConfidenceURI":"android/
|
|
4587
|
+
/** ☆☆☆☆ ✔ Example: [{"Camera":{"DepthMap":{"ConfidenceURI":"android/confiden…cal"}}] */
|
|
4582
4588
|
Cameras?: Struct[];
|
|
4583
4589
|
/** ☆☆☆☆ ✔ Example: "Photo" */
|
|
4584
4590
|
CaptureMode?: string;
|
|
@@ -4614,7 +4620,7 @@ export interface XMPTags {
|
|
|
4614
4620
|
Colorlabels?: string;
|
|
4615
4621
|
/** ☆☆☆☆ ✔ Example: "This is a comment." */
|
|
4616
4622
|
Comment?: string;
|
|
4617
|
-
/** ☆☆☆☆ ✔ Example: {"Directory":[{"DataURI":"primary_image","Length"
|
|
4623
|
+
/** ☆☆☆☆ ✔ Example: {"Directory":[{"Item":{"DataURI":"primary_image","Length"…eg"}}]} */
|
|
4618
4624
|
Container?: Struct;
|
|
4619
4625
|
/** ☆☆☆☆ ✔ Example: false */
|
|
4620
4626
|
ConvertToGrayscale?: boolean;
|
|
@@ -4658,7 +4664,7 @@ export interface XMPTags {
|
|
|
4658
4664
|
CroppedAreaTopPixels?: number;
|
|
4659
4665
|
/** ☆☆☆☆ ✔ Example: "2014:05:11 13:08:25.659" */
|
|
4660
4666
|
DateAcquired?: ExifDateTime | string;
|
|
4661
|
-
/** ☆☆☆☆ ✔ Example: "
|
|
4667
|
+
/** ☆☆☆☆ ✔ Example: "2023:11:07" */
|
|
4662
4668
|
DateCreated?: ExifDateTime | string;
|
|
4663
4669
|
/** ☆☆☆☆ ✔ Example: "2017:08:13 12:38:30" */
|
|
4664
4670
|
DateTime?: ExifDateTime | string;
|
|
@@ -4744,7 +4750,7 @@ export interface XMPTags {
|
|
|
4744
4750
|
GreenHue?: number;
|
|
4745
4751
|
/** ☆☆☆☆ ✔ Example: 0 */
|
|
4746
4752
|
GreenSaturation?: number;
|
|
4747
|
-
/** ☆☆☆☆ ✔ Example: "(Binary data
|
|
4753
|
+
/** ☆☆☆☆ ✔ Example: "(Binary data 53037 bytes, use -b option to extract)" */
|
|
4748
4754
|
HDRPMakerNote?: BinaryField | string;
|
|
4749
4755
|
/** ☆☆☆☆ ✔ Example: false */
|
|
4750
4756
|
HasCrop?: boolean;
|
|
@@ -4844,7 +4850,7 @@ export interface XMPTags {
|
|
|
4844
4850
|
Marked?: boolean;
|
|
4845
4851
|
/** ☆☆☆☆ ✔ Example: "" */
|
|
4846
4852
|
Mask?: string;
|
|
4847
|
-
/** ☆☆☆☆ ✔ Example: "
|
|
4853
|
+
/** ☆☆☆☆ ✔ Example: "2023:10:30 15:46:26-07:00" */
|
|
4848
4854
|
MetadataDate?: ExifDateTime | string;
|
|
4849
4855
|
/** ☆☆☆☆ ✔ Example: 1 */
|
|
4850
4856
|
MicroVideo?: number;
|
|
@@ -4862,6 +4868,12 @@ export interface XMPTags {
|
|
|
4862
4868
|
MobileNetworkCode?: number;
|
|
4863
4869
|
/** ☆☆☆☆ ✔ Example: "2015:06:02 09:56:01" */
|
|
4864
4870
|
ModificationDate?: ExifDateTime | string;
|
|
4871
|
+
/** ☆☆☆☆ Example: 1 */
|
|
4872
|
+
MotionPhoto?: number;
|
|
4873
|
+
/** ☆☆☆☆ Example: 2933040 */
|
|
4874
|
+
MotionPhotoPresentationTimestampUs?: number;
|
|
4875
|
+
/** ☆☆☆☆ Example: 1 */
|
|
4876
|
+
MotionPhotoVersion?: number;
|
|
4865
4877
|
/** ☆☆☆☆ Example: "36864,40960,40961,37121,37122,40962,40963,37510,40964,368…B0A1251" */
|
|
4866
4878
|
NativeDigest?: string;
|
|
4867
4879
|
/** ☆☆☆☆ Example: 115.4 */
|
|
@@ -4938,7 +4950,7 @@ export interface XMPTags {
|
|
|
4938
4950
|
PreservedFileName?: string;
|
|
4939
4951
|
/** ☆☆☆☆ ✔ Example: 11 */
|
|
4940
4952
|
ProcessVersion?: number;
|
|
4941
|
-
/** ☆☆☆☆ ✔ Example: [{"CameraIndices":[0],"Type":"DepthPhoto"}] */
|
|
4953
|
+
/** ☆☆☆☆ ✔ Example: [{"Profile":{"CameraIndices":[0],"Type":"DepthPhoto"}}] */
|
|
4942
4954
|
Profiles?: Struct[];
|
|
4943
4955
|
/** ☆☆☆☆ Example: */
|
|
4944
4956
|
ProgramMode?: string;
|
|
@@ -5010,8 +5022,6 @@ export interface XMPTags {
|
|
|
5010
5022
|
SplitToningShadowHue?: number;
|
|
5011
5023
|
/** ☆☆☆☆ ✔ Example: 0 */
|
|
5012
5024
|
SplitToningShadowSaturation?: number;
|
|
5013
|
-
/** ☆☆☆☆ ✔ Example: "Washington" */
|
|
5014
|
-
State?: string;
|
|
5015
5025
|
/** ☆☆☆☆ ✔ Example: "https://PhotoStructure.com/" */
|
|
5016
5026
|
StitchingSoftware?: string;
|
|
5017
5027
|
/** ☆☆☆☆ ✔ Example: 3 */
|
|
@@ -5093,8 +5103,8 @@ export interface XMPTags {
|
|
|
5093
5103
|
* devices (like iPhones) An example value, JSON stringified, follows the
|
|
5094
5104
|
* popularity ratings.
|
|
5095
5105
|
*
|
|
5096
|
-
* Autogenerated by "yarn mktags" by ExifTool 12.
|
|
5097
|
-
*
|
|
5106
|
+
* Autogenerated by "yarn mktags" by ExifTool 12.85 on Wed May 29 2024.
|
|
5107
|
+
* 2744 unique tags were found in 10122 photo and video files.
|
|
5098
5108
|
*/
|
|
5099
5109
|
export interface Tags extends APP12Tags, APP14Tags, APP1Tags, APP4Tags, APP5Tags, APP6Tags, ApplicationRecordTags, CompositeTags, EXIFTags, ExifToolTags, ExifToolVendoredTags, FileTags, FlashPixTags, GeolocationTags, ICCProfileTags, IPTCTags, ImageDataHashTag, JFIFTags, JSONTags, MPFTags, MWGCollectionsTags, MWGKeywordTags, MakerNotesTags, MetaTags, PanasonicRawTags, PhotoshopTags, PrintIMTags, QuickTimeTags, RAFTags, RIFFTags, XMPTags {
|
|
5100
5110
|
}
|
package/dist/VersionTask.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ExifToolTask } from "./ExifToolTask";
|
|
1
|
+
import { ExifToolTask, ExifToolTaskOptions } from "./ExifToolTask";
|
|
2
2
|
export declare class VersionTask extends ExifToolTask<string> {
|
|
3
3
|
private static readonly versionRegex;
|
|
4
|
-
constructor();
|
|
4
|
+
constructor(options?: ExifToolTaskOptions);
|
|
5
5
|
protected parse(input: string): string;
|
|
6
6
|
}
|
package/dist/VersionTask.js
CHANGED
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VersionTask = void 0;
|
|
4
4
|
const ExifToolTask_1 = require("./ExifToolTask");
|
|
5
5
|
class VersionTask extends ExifToolTask_1.ExifToolTask {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(["-ver"]);
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(["-ver"], options);
|
|
8
8
|
}
|
|
9
9
|
parse(input) {
|
|
10
10
|
const value = input.trim();
|
package/dist/VersionTask.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VersionTask.js","sourceRoot":"","sources":["../src/VersionTask.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"VersionTask.js","sourceRoot":"","sources":["../src/VersionTask.ts"],"names":[],"mappings":";;;AAAA,iDAAkE;AAElE,MAAa,WAAY,SAAQ,2BAAoB;IAGnD,YAAY,OAA6B;QACvC,KAAK,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,CAAA;IAC1B,CAAC;IAES,KAAK,CAAC,KAAa;QAC3B,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAA;QAC1B,IAAI,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YACzC,OAAO,KAAK,CAAA;QACd,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,KAAK,CAAC,sBAAsB,KAAK,EAAE,CAAC,CAAA;QAChD,CAAC;IACH,CAAC;;AAdH,kCAeC;AAdyB,wBAAY,GAAG,kCAAkC,CAAA"}
|
package/dist/Which.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Maybe } from "./Maybe";
|
|
2
|
-
export declare function which(
|
|
2
|
+
export declare function which(binaryOrPath: string): Promise<Maybe<string>>;
|
package/dist/Which.js
CHANGED
|
@@ -5,19 +5,31 @@ const node_fs_1 = require("node:fs");
|
|
|
5
5
|
const promises_1 = require("node:fs/promises");
|
|
6
6
|
const node_path_1 = require("node:path");
|
|
7
7
|
const node_process_1 = require("node:process");
|
|
8
|
+
const IsWin32_1 = require("./IsWin32");
|
|
8
9
|
const String_1 = require("./String");
|
|
9
|
-
async function which(
|
|
10
|
+
async function which(binaryOrPath) {
|
|
11
|
+
if ((0, node_path_1.isAbsolute)(binaryOrPath) && (await canRX(binaryOrPath))) {
|
|
12
|
+
return binaryOrPath;
|
|
13
|
+
}
|
|
14
|
+
const base = (0, node_path_1.basename)(binaryOrPath);
|
|
10
15
|
for (const dir of (0, String_1.toS)(node_process_1.env.PATH).split(node_path_1.delimiter)) {
|
|
11
|
-
const fullPath = (0, node_path_1.join)(dir,
|
|
12
|
-
|
|
13
|
-
await (0, promises_1.access)(fullPath, node_fs_1.constants.R_OK | node_fs_1.constants.X_OK);
|
|
16
|
+
const fullPath = (0, node_path_1.join)(dir, base);
|
|
17
|
+
if (await canRX(fullPath)) {
|
|
14
18
|
return fullPath;
|
|
15
19
|
}
|
|
16
|
-
catch {
|
|
17
|
-
//
|
|
18
|
-
}
|
|
19
20
|
}
|
|
20
21
|
return;
|
|
21
22
|
}
|
|
22
23
|
exports.which = which;
|
|
24
|
+
async function canRX(fullpath) {
|
|
25
|
+
if ((0, IsWin32_1.isWin32)())
|
|
26
|
+
return (0, node_fs_1.existsSync)(fullpath);
|
|
27
|
+
try {
|
|
28
|
+
await (0, promises_1.access)(fullpath, node_fs_1.constants.R_OK | node_fs_1.constants.X_OK);
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
catch {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
23
35
|
//# sourceMappingURL=Which.js.map
|
package/dist/Which.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Which.js","sourceRoot":"","sources":["../src/Which.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"Which.js","sourceRoot":"","sources":["../src/Which.ts"],"names":[],"mappings":";;;AAAA,qCAA+C;AAC/C,+CAAyC;AACzC,yCAAiE;AACjE,+CAAkC;AAClC,uCAAmC;AAEnC,qCAA8B;AAEvB,KAAK,UAAU,KAAK,CAAC,YAAoB;IAC9C,IAAI,IAAA,sBAAU,EAAC,YAAY,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC;QAC5D,OAAO,YAAY,CAAA;IACrB,CAAC;IACD,MAAM,IAAI,GAAG,IAAA,oBAAQ,EAAC,YAAY,CAAC,CAAA;IACnC,KAAK,MAAM,GAAG,IAAI,IAAA,YAAG,EAAC,kBAAG,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,qBAAS,CAAC,EAAE,CAAC;QACjD,MAAM,QAAQ,GAAG,IAAA,gBAAI,EAAC,GAAG,EAAE,IAAI,CAAC,CAAA;QAChC,IAAI,MAAM,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC1B,OAAO,QAAQ,CAAA;QACjB,CAAC;IACH,CAAC;IACD,OAAM;AACR,CAAC;AAZD,sBAYC;AAED,KAAK,UAAU,KAAK,CAAC,QAAgB;IACnC,IAAI,IAAA,iBAAO,GAAE;QAAE,OAAO,IAAA,oBAAU,EAAC,QAAQ,CAAC,CAAA;IAC1C,IAAI,CAAC;QACH,MAAM,IAAA,iBAAM,EAAC,QAAQ,EAAE,mBAAS,CAAC,IAAI,GAAG,mBAAS,CAAC,IAAI,CAAC,CAAA;QACvD,OAAO,IAAI,CAAA;IACb,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAA;IACd,CAAC;AACH,CAAC"}
|
package/dist/WriteTask.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { ExifToolTask } from "./ExifToolTask";
|
|
1
|
+
import { ExifToolTask, ExifToolTaskOptions } from "./ExifToolTask";
|
|
2
2
|
import { WriteTags } from "./WriteTags";
|
|
3
3
|
export declare function htmlEncode(s: string): string;
|
|
4
4
|
export declare const DefaultWriteTaskOptions: {
|
|
5
5
|
readonly useMWG: boolean;
|
|
6
|
+
readonly ignoreMinorErrors: boolean;
|
|
6
7
|
};
|
|
7
|
-
export type WriteTaskOptions = typeof DefaultWriteTaskOptions
|
|
8
|
+
export type WriteTaskOptions = Partial<typeof DefaultWriteTaskOptions>;
|
|
8
9
|
export interface WriteTaskResult {
|
|
9
10
|
/**
|
|
10
11
|
* Number of files created by ExifTool
|
|
@@ -32,8 +33,9 @@ export interface WriteTaskResult {
|
|
|
32
33
|
export declare class WriteTask extends ExifToolTask<WriteTaskResult> {
|
|
33
34
|
readonly sourceFile: string;
|
|
34
35
|
readonly args: string[];
|
|
36
|
+
readonly options: ExifToolTaskOptions;
|
|
35
37
|
private constructor();
|
|
36
|
-
static for(filename: string, tags: WriteTags, extraArgs
|
|
38
|
+
static for(filename: string, tags: WriteTags, extraArgs: string[] | undefined, options: Partial<WriteTaskOptions> & Required<ExifToolTaskOptions>): WriteTask;
|
|
37
39
|
toString(): string;
|
|
38
40
|
protected parse(data: string, error?: Error): WriteTaskResult;
|
|
39
41
|
}
|