Skip to content

Commit

Permalink
mktags
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Jul 21, 2024
1 parent 0e881b4 commit a199606
Showing 1 changed file with 43 additions and 38 deletions.
81 changes: 43 additions & 38 deletions src/Tags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { Version } from "./Version"
export interface ExifToolTags {
/** ☆☆☆☆ ✔ Example: "File is empty" */
Error?: string
/** ★★★★ ✔ Example: 12.85 */
/** ★★★★ ✔ Example: 12.89 */
ExifToolVersion?: number
/** ☆☆☆☆ Example: "path/to/file.jpg" */
SourceFile?: string
Expand All @@ -46,11 +46,11 @@ export interface FileTags {
EncodingProcess?: string
/** ★★★★ ✔ Example: "Little-endian (Intel, II)" */
ExifByteOrder?: string
/** ★★★★ ✔ Example: "2024:05:29 12:57:23-07:00" */
/** ★★★★ ✔ Example: "2024:07:20 17:33:35-07:00" */
FileAccessDate?: ExifDateTime | string
/** ☆☆☆☆ Example: */
FileCreateDate?: ExifDateTime | string
/** ★★★★ ✔ Example: "2024:05:29 12:57:04-07:00" */
/** ★★★★ ✔ Example: "2024:07:19 20:28:02-07:00" */
FileInodeChangeDate?: ExifDateTime | string
/** ★★★★ ✔ Example: "2024:05:13 10:21:03-07:00" */
FileModifyDate?: ExifDateTime | string
Expand Down Expand Up @@ -199,6 +199,8 @@ export interface APP1Tags {
EmbeddedImageType?: string
/** ☆☆☆☆ Example: 640 */
EmbeddedImageWidth?: number
/** ☆☆☆☆ Example: 1 */
Emissivity?: number
/** ☆☆☆☆ Example: "46.1 deg" */
FieldOfView?: string
/** ☆☆☆☆ Example: "NOF" */
Expand Down Expand Up @@ -261,7 +263,7 @@ export interface APP1Tags {
PaletteStretch?: number
/** ☆☆☆☆ Example: ".basicImgData.objectParams.emissivity" */
Param0?: string
/** ☆☆☆☆ Example: "(Binary data 614604 bytes, use -b option to extract)" */
/** ☆☆☆☆ Example: "(Binary data 153804 bytes, use -b option to extract)" */
RawThermalImage?: BinaryField | string
/** ☆☆☆☆ Example: 90 */
RawThermalImageHeight?: number
Expand All @@ -281,6 +283,8 @@ export interface APP1Tags {
Real2IR?: number
/** ☆☆☆☆ Example: "26.7 C" */
ReflectedApparentTemperature?: string
/** ☆☆☆☆ Example: "80.0 %" */
RelativeHumidity?: string
/** ☆☆☆☆ Example: "41 110 240" */
UnderflowColor?: string
}
Expand Down Expand Up @@ -444,10 +448,6 @@ export interface APP14Tags {
export interface APP4Tags {
/** ☆☆☆☆ ✔ Example: "40 C" */
AmbientTemperature?: string
/** ☆☆☆☆ Example: 1 */
Emissivity?: number
/** ☆☆☆☆ Example: "80.0 %" */
RelativeHumidity?: string
}

export interface APP5Tags {
Expand Down Expand Up @@ -617,8 +617,6 @@ export interface EXIFTags {
GPSStatus?: string
/** ☆☆☆☆ ✔ Example: "23:59:41.001" */
GPSTimeStamp?: ExifTime | string
/** ★☆☆☆ ✔ Example: "50.51.48.48" */
GPSVersionID?: string
/** ★★★☆ ✔ Example: "Unknown (8176)" */
GainControl?: string
/** ☆☆☆☆ ✔ Example: 2.4921875 */
Expand All @@ -641,7 +639,7 @@ export interface EXIFTags {
InteropIndex?: string
/** ★★★★ ✔ Example: "undef undef undef" */
InteropVersion?: string
/** ☆☆☆☆ ✔ Example: "(Binary data 772608 bytes, use -b option to extract)" */
/** ☆☆☆☆ ✔ Example: "(Binary data 532480 bytes, use -b option to extract)" */
JpgFromRaw?: BinaryField
/** ☆☆☆☆ ✔ Example: 845574 */
JpgFromRawLength?: number
Expand Down Expand Up @@ -797,7 +795,7 @@ export interface EXIFTags {
SubjectDistanceRange?: string
/** ☆☆☆☆ ✔ Example: 1 */
SubjectLocation?: number
/** ★★★★ ✔ Example: "(Binary data 10202 bytes, use -b option to extract)" */
/** ★★★★ ✔ Example: "(Binary data 12652 bytes, use -b option to extract)" */
ThumbnailImage?: BinaryField
/** ★★★★ ✔ Example: 9998 */
ThumbnailLength?: number
Expand All @@ -809,7 +807,7 @@ export interface EXIFTags {
TileByteCounts?: BinaryField | string
/** ☆☆☆☆ ✔ Example: 512 */
TileLength?: number
/** ☆☆☆☆ ✔ Example: "(Binary data 507 bytes, use -b option to extract)" */
/** ☆☆☆☆ ✔ Example: "(Binary data 508 bytes, use -b option to extract)" */
TileOffsets?: BinaryField | string
/** ☆☆☆☆ ✔ Example: 512 */
TileWidth?: number
Expand Down Expand Up @@ -898,7 +896,7 @@ export interface FlashPixTags {
ExtensionName?: string
/** ☆☆☆☆ ✔ Example: "Invalidated By Modification" */
ExtensionPersistence?: string
/** ☆☆☆☆ ✔ Example: "(Binary data 57881 bytes, use -b option to extract)" */
/** ☆☆☆☆ ✔ Example: "(Binary data 46285 bytes, use -b option to extract)" */
ScreenNail?: BinaryField | string
/** ☆☆☆☆ ✔ Example: 1 */
UsedExtensionNumbers?: number
Expand Down Expand Up @@ -929,7 +927,7 @@ export interface GeolocationTags {
GeolocationPosition?: string
/** ☆☆☆☆ ✔ Example: "Île-de-France" */
GeolocationRegion?: string
/** ☆☆☆☆ ✔ Example: "Yuzhnyy Administrativnyy Okrug" */
/** ☆☆☆☆ ✔ Example: "Ōta-ku" */
GeolocationSubregion?: string
/** ☆☆☆☆ ✔ Example: "Pacific/Saipan" */
GeolocationTimeZone?: string
Expand Down Expand Up @@ -1316,6 +1314,8 @@ export interface RAFTags {
FujiLayout?: string
/** ☆☆☆☆ ✔ Example: "267.4545455 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0 0…5 0.488" */
GeometricDistortionParams?: string
/** ☆☆☆☆ ✔ Example: "Uncompressed" */
RAFCompression?: string
/** ☆☆☆☆ ✔ Example: -1.7 */
RawExposureBias?: number
/** ☆☆☆☆ ✔ Example: "6 16" */
Expand Down Expand Up @@ -2267,7 +2267,7 @@ export interface MakerNotesTags {
DigitalGain?: number
/** ☆☆☆☆ ✔ Example: "Off" */
DigitalICE?: string
/** ☆☆☆☆ ✔ Example: "Stanard" */
/** ☆☆☆☆ ✔ Example: "Standard" */
DigitalLensOptimizer?: string
/** ☆☆☆☆ ✔ Example: "On" */
DigitalLensOptimizerSetting?: string
Expand Down Expand Up @@ -2454,6 +2454,8 @@ export interface MakerNotesTags {
/** ☆☆☆☆ ✔ Example: "0.2.0.0" */
ExtraInfoVersion?: string
/** ☆☆☆☆ ✔ Example: "On" */
EyeDetection?: string
/** ☆☆☆☆ ✔ Example: "On" */
EyeStartAF?: string
/** ☆☆☆☆ ✔ Example: "Enable; 0; 8; 0" */
FEMicroadjustment?: string
Expand Down Expand Up @@ -2483,8 +2485,6 @@ export interface MakerNotesTags {
FacePosition?: string
/** ☆☆☆☆ ✔ Example: "918 1058 1959 2101" */
FacePositions?: string
/** ☆☆☆☆ ✔ Example: "On" */
FaceRecognition?: string
/** ☆☆☆☆ ✔ Example: 35 */
FaceWidth?: number
/** ★★★☆ ✔ Example: 65535 */
Expand Down Expand Up @@ -3408,8 +3408,6 @@ export interface MakerNotesTags {
/** ☆☆☆☆ ✔ Example: "(none)" */
MonochromeColor?: string
/** ☆☆☆☆ ✔ Example: "Off" */
MonochromeFilterEffect?: string
/** ☆☆☆☆ ✔ Example: "Off" */
MonochromeGrainEffect?: string
/** ☆☆☆☆ ✔ Example: "No Filter; 0; 8; Strength 2; 0; 3" */
MonochromeProfileSettings?: string
Expand Down Expand Up @@ -3565,8 +3563,6 @@ export interface MakerNotesTags {
OrientationLinkedAF?: string
/** ☆☆☆☆ ✔ Example: "Same for vertical and horizontal" */
OrientationLinkedAFPoint?: string
/** ☆☆☆☆ ✔ Example: 3318 */
OriginalDecisionDataOffset?: number
/** ☆☆☆☆ Example: "/home/username/pictures" */
OriginalDirectory?: string
/** ☆☆☆☆ ✔ Example: "L9997698.JPG" */
Expand Down Expand Up @@ -4269,6 +4265,8 @@ export interface MakerNotesTags {
SubjectMotion?: string
/** ☆☆☆☆ Example: "None" */
SubjectProgram?: string
/** ☆☆☆☆ ✔ Example: "Unknown (4)" */
SubjectToDetect?: string
/** ☆☆☆☆ ✔ Example: "Off" */
SuperMacro?: string
/** ☆☆☆☆ ✔ Example: "On" */
Expand Down Expand Up @@ -4343,7 +4341,7 @@ export interface MakerNotesTags {
ToneCurve?: string
/** ☆☆☆☆ ✔ Example: "(Binary data 95 bytes, use -b option to extract)" */
ToneCurveMatching?: BinaryField | string
/** ☆☆☆☆ ✔ Example: "(Binary data 1679 bytes, use -b option to extract)" */
/** ☆☆☆☆ ✔ Example: "(Binary data 1505 bytes, use -b option to extract)" */
ToneCurveTable?: BinaryField | string
/** ☆☆☆☆ ✔ Example: "Highlights; 0; -7; 7; Shadows; 0; -7; 7; Midtones; 0; -7;…0; 0; 0" */
ToneLevel?: string
Expand Down Expand Up @@ -4511,7 +4509,7 @@ export interface MakerNotesTags {
WhiteBalanceSetting?: string
/** ☆☆☆☆ ✔ Example: "Auto" */
WhiteBalanceSetup?: string
/** ☆☆☆☆ ✔ Example: "(Binary data 2217 bytes, use -b option to extract)" */
/** ☆☆☆☆ ✔ Example: "(Binary data 2201 bytes, use -b option to extract)" */
WhiteBalanceTable?: BinaryField | string
/** ☆☆☆☆ ✔ Example: "Auto" */
WhiteBalanceTemperature?: string
Expand Down Expand Up @@ -4611,7 +4609,7 @@ export interface XMPTags {
CameraProfileDigest?: string
/** ☆☆☆☆ Example: "Rear" */
CameraUnit?: string
/** ☆☆☆☆ ✔ Example: [{"Camera":{"DepthMap":{"ConfidenceURI":"android/confiden…cal"}}] */
/** ☆☆☆☆ ✔ Example: [{"DepthMap":{"ConfidenceURI":"android/confidencemap","De…ical"}] */
Cameras?: Struct[]
/** ☆☆☆☆ ✔ Example: "Photo" */
CaptureMode?: string
Expand Down Expand Up @@ -4647,8 +4645,10 @@ export interface XMPTags {
Colorlabels?: string
/** ☆☆☆☆ ✔ Example: "This is a comment." */
Comment?: string
/** ☆☆☆☆ ✔ Example: {"Directory":[{"Item":{"DataURI":"primary_image","Length"…eg"}}]} */
/** ☆☆☆☆ ✔ Example: {"Directory":[{"DataURI":"primary_image","Length":0,"Mime…peg"}]} */
Container?: Struct
/** ☆☆☆☆ Example: "/home/username/pictures" */
ContainerDirectory?: Struct[]
/** ☆☆☆☆ ✔ Example: false */
ConvertToGrayscale?: boolean
/** ☆☆☆☆ ✔ Example: "United States" */
Expand Down Expand Up @@ -4777,7 +4777,7 @@ export interface XMPTags {
GreenHue?: number
/** ☆☆☆☆ ✔ Example: 0 */
GreenSaturation?: number
/** ☆☆☆☆ ✔ Example: "(Binary data 53037 bytes, use -b option to extract)" */
/** ☆☆☆☆ ✔ Example: "(Binary data 49603 bytes, use -b option to extract)" */
HDRPMakerNote?: BinaryField | string
/** ☆☆☆☆ ✔ Example: false */
HasCrop?: boolean
Expand Down Expand Up @@ -4977,7 +4977,7 @@ export interface XMPTags {
PreservedFileName?: string
/** ☆☆☆☆ ✔ Example: 11 */
ProcessVersion?: number
/** ☆☆☆☆ ✔ Example: [{"Profile":{"CameraIndices":[0],"Type":"DepthPhoto"}}] */
/** ☆☆☆☆ ✔ Example: [{"CameraIndices":[0],"Type":"DepthPhoto"}] */
Profiles?: Struct[]
/** ☆☆☆☆ Example: */
ProgramMode?: string
Expand Down Expand Up @@ -5122,17 +5122,22 @@ export interface XMPTags {
/**
* This is a partial list of fields returned by {@link ExifTool.read}.
*
* To prevent error TS2590: (Expression produces a union type that is too
* complex to represent) only the most common 2874 tags are retained in this
* interface.
* This interface is **not** comprehensive: we only include the most popular
* ~2 thousand fields so as to avoid TypeScript error TS2590: (Expression
* produces a union type that is too complex to represent).
*
* Comments by each tag include popularity (★★★★ is found in > 50% of samples,
* and ☆☆☆☆ is rare), followed by a checkmark if the tag is used by popular
* devices (like iPhones) An example value, JSON stringified, follows the
* popularity ratings.
* If this interface is missing a field you need, you should handle that
* typecasting safely in your own code.
*
* Autogenerated by "yarn mktags" by ExifTool 12.85 on Wed May 29 2024.
* 2744 unique tags were found in 10122 photo and video files.
* Comments by each tag include:
* - a popularity rating (★★★★ is found in > 50% of samples, and ☆☆☆☆ is rare),
* - a checkmark if the tag is used by popular devices (like iPhones), and
* - an example value, JSON stringified.
*
* Autogenerated by "yarn mktags" by ExifTool 12.89 on Sat Jul 20 2024.
* 2753 unique tags were found in 10122 photo and video files.
*
* @see https://exiftool.org/TagNames/
*/
export interface Tags
extends APP12Tags,
Expand All @@ -5149,9 +5154,9 @@ export interface Tags
FlashPixTags,
GeolocationTags,
ICCProfileTags,
IPTCApplicationRecordTags,
IPTCTags,
ImageDataHashTag,
IPTCApplicationRecordTags,
JFIFTags,
JSONTags,
MPFTags,
Expand Down

0 comments on commit a199606

Please sign in to comment.