RhetTbull / exif2findertags

Read EXIF metadata from image and video files and convert it to macOS Finder tags and/or Finder comments.
MIT License
21 stars 0 forks source link

Need a way to specify which metadata tags to write as finder tags and which to write as a finder comment #1

Closed RhetTbull closed 3 years ago

RhetTbull commented 3 years ago

Sample movie metadata:

python -m exif2findertags ~/Desktop/export/Jellyfish.MOV
Processing 1 files
SourceFile: /Users/rhet/Desktop/export/Jellyfish.MOV
ExifToolVersion: 12.29
Warning: [minor] The ExtractEmbedded option may find more tags in the media data
FileName: Jellyfish.MOV
Directory: /Users/rhet/Desktop/export
FileSize: 2552489
FileModifyDate: 2021:08:01 21:51:33-07:00
FileAccessDate: 2021:08:01 21:54:56-07:00
FileInodeChangeDate: 2021:08:16 06:01:52-07:00
FilePermissions: 100644
FileType: MOV
FileTypeExtension: MOV
MIMEType: video/quicktime
MajorBrand: qt
MinorVersion: 0.0.0
CompatibleBrands: ['qt  ']
MovieHeaderVersion: 0
CreateDate: 2020:01:05 22:13:13
ModifyDate: 2020:01:05 22:13:13
TimeScale: 600
Duration: 2.86333333333333
PreferredRate: 1
PreferredVolume: 1
PreviewTime: 0
PreviewDuration: 0
PosterTime: 0
SelectionTime: 0
SelectionDuration: 0
CurrentTime: 0
NextTrackID: 5
TrackHeaderVersion: 0
TrackCreateDate: 2020:01:11 15:37:47
TrackModifyDate: 2020:01:11 15:37:48
TrackID: 1
TrackDuration: 2.86333333333333
TrackLayer: 0
TrackVolume: 0
ImageWidth: 1920
ImageHeight: 1080
CleanApertureDimensions: 1280 720
ProductionApertureDimensions: 1280 720
EncodedPixelsDimensions: 1280 720
GraphicsMode: 64
OpColor: 32768 32768 32768
CompressorID: avc1
SourceImageWidth: 1280
SourceImageHeight: 720
XResolution: 72
YResolution: 72
CompressorName: H.264
BitDepth: 24
VideoFrameRate: 24.0977881257276
Balance: 0
AudioFormat: mp4a
AudioBitsPerSample: 16
AudioSampleRate: 44100
LayoutFlags: 100
AudioChannels: 1
PurchaseFileFormat: mp4a
MatrixStructure: 1 0 0 0 1 0 0 0 1
MediaHeaderVersion: 0
MediaCreateDate: 2020:01:11 15:37:47
MediaModifyDate: 2020:01:11 15:37:48
MediaTimeScale: 600
MediaDuration: 5.5
MediaLanguageCode: und
GenMediaVersion: 0
GenFlags: 0 0 0
GenGraphicsMode: 64
GenOpColor: 32768 32768 32768
GenBalance: 0
HandlerClass: dhlr
HandlerVendorID: appl
HandlerDescription: Core Media Data Handler
MetaFormat: mebx
HandlerType: mdta
CreationDate: 2020:01:05 14:13:13-08:00
GPSCoordinates: 34.053345 -118.242349
MediaDataSize: 2544169
MediaDataOffset: 8320
XMPToolkit: Image::ExifTool 12.29
Description: Jellyfish Video
Subject: Travel
Title: Jellyfish
TagsList: Travel
ImageSize: 1920 1080
Megapixels: 2.0736
AvgBitrate: 7108272
GPSLatitude: 34.053345
GPSLongitude: -118.242349
Rotation: 0
GPSPosition: 34.053345 -118.242349

Sample photo metadata:

python -m exif2findertags ~/Desktop/export/Pumkins1.jpg
Processing 1 files
SourceFile: /Users/rhet/Desktop/export/Pumkins1.jpg
ExifToolVersion: 12.29
FileName: Pumkins1.jpg
Directory: /Users/rhet/Desktop/export
FileSize: 557824
FileModifyDate: 2018:09:28 12:35:49-07:00
FileAccessDate: 2021:08:16 06:01:47-07:00
FileInodeChangeDate: 2021:08:16 06:01:45-07:00
FilePermissions: 100644
FileType: JPEG
FileTypeExtension: JPG
MIMEType: image/jpeg
ExifByteOrder: MM
CurrentIPTCDigest: 1354cb5880e8441984e8ede6efced44c
ImageWidth: 2048
ImageHeight: 1365
EncodingProcess: 0
BitsPerSample: 8
ColorComponents: 3
YCbCrSubSampling: 2 2
ImageDescription: Girls with pumpkins
Make: Canon
Model: Canon EOS 5D Mark IV
XResolution: 72
YResolution: 72
ResolutionUnit: 2
Software: Adobe Photoshop CC 2014 (Windows)
ModifyDate: 2018:09:28 15:35:49
Artist: Alexander Moore
YCbCrPositioning: 1
Copyright: YTC Ltd
ExposureTime: 0.00625
ExposureProgram: 4
ISO: 100
ExifVersion: 0231
DateTimeOriginal: 2018:09:28 15:35:49
CreateDate: 2018:09:28 15:35:49
OffsetTimeOriginal: -04:00
ComponentsConfiguration: 1 2 3 0
ApertureValue: 4.99999992067845
ExposureCompensation: -0.3333333333
MeteringMode: 5
Flash: 16
FocalLength: 84
SubSecTime: 63
SubSecTimeOriginal: 63
SubSecTimeDigitized: 63
FlashpixVersion: 0100
ColorSpace: 65535
ExposureMode: 0
WhiteBalance: 0
SceneCaptureType: 0
SerialNumber: 053023000854
LensModel: EF24-105mm f/4L IS USM
LensSerialNumber: 000011bb5e
CodedCharacterSet:
EnvelopeRecordVersion: 4
DateCreated: 2018:09:28
TimeCreated: 15:35:49-04:00
By-line: Alexander Moore
CopyrightNotice: YTC Ltd
DocumentNotes: https://flickr.com/e/OQj1ZiITFhjOs%2BEJ1OvfLSIOFVbIny3cCz0pnINmdRA%3D
ApplicationRecordVersion: 4
ObjectName: Can we carry this?
Keywords: Kids
Caption-Abstract: Girls with pumpkins
XMPToolkit: Image::ExifTool 12.29
PersonInImage: ['Katie', 'Suzy']
Description: Girls with pumpkins
Subject: Kids
Title: Can we carry this?
TagsList: Kids
Aperture: 4.99999992067845
ImageSize: 2048 1365
Megapixels: 2.79552
ShutterSpeed: 0.00625
SubSecCreateDate: 2018:09:28 15:35:49.63
SubSecDateTimeOriginal: 2018:09:28 15:35:49.63-04:00
SubSecModifyDate: 2018:09:28 15:35:49.63
DateTimeCreated: 2018:09:28 15:35:49-04:00
LightValue: 11.9657842388874
FocalLength35efl: 84
LensID: EF24-105mm f/4L IS USM