If following is not a "Tips and Tricks", and rather well-known thing, or wrong article, please ignore.
Currently I am using Phil Harvey's famous Exiftool.exe via RunCommand plugin to get various Exif information from photo image in my slideshow skin. Probably it is the best way for it, but... simultaneous multiple instances of the Exiftool are rather heavy for my old PC.
I recently noticed that the GetDetailsOf method of Windows PowerShell can also get basic Exif information such as camera model, capture time, and exposure. And it is somewhat light and fast even for my PC. For example, I have tested to run 9 PowerShell instances simultaneously, but no significant performance impact can be detected.
GetExfInfo.ps1:
Code: Select all
$path = $Args[0]
$shell = New-Object -COMObject Shell.Application
$folder = Split-Path $path
$file = Split-Path $path -Leaf
$shellfolder = $shell.Namespace($folder)
$shellfile = $shellfolder.ParseName($file)
Write-Host Manufacturer: $shellfolder.GetDetailsOf($shellfile, 32)
Write-Host Model: $shellfolder.GetDetailsOf($shellfile, 30)
Write-Host Capture Time: $shellfolder.GetDetailsOf($shellfile, 12)
Write-Host Shutter Speed: $shellfolder.GetDetailsOf($shellfile, 259)
Write-Host Aperture: $shellfolder.GetDetailsOf($shellfile, 260)
Write-Host Focal Length: $shellfolder.GetDetailsOf($shellfile, 262)
Write-Host ISO Value: $shellfolder.GetDetailsOf($shellfile, 264)
Code: Select all
Manufacturer: Panasonic
Model: DMC-QQ
Capture Time: 2020/09/xx yy:zz
Shutter Speed: 1/160 Sec.
Aperture: f/5.6
Focal Length: 60 mm
ISO Value: ISO-200
Code: Select all
[GetExifData]
Measure=Plugin
Plugin=RunCommand
Program=powershell
Parameter=#CURRENTPATH#GetExifData.ps1 """[FilePath]"""
OutputType=ANSI
Substitute="?":""
DynamicVariables=1
Remarks2: There is a possibility that the PowerShell output sometimes includes some control code(?) as invisible Unicode characters. These are converted to "?" in ASCII output. So, substitution as above is necessary. Possibly, it is caused by local condition of my Windows, but not sure.