Quantcast

PowerShell nonsense

Westy

the teste
Nov 22, 2002
45,667
11,276
Sleazattle
1637279820470.png


Wouldn't an EXIF viewer/editor like this be an easier way? No idea what you are trying to accomplish

 
View attachment 167626

Wouldn't an EXIF viewer/editor like this be an easier way? No idea what you are trying to accomplish

I'm not only interested in image files. I would like to know generically how to use data that PowerPoint returns in tabular format.
 
$coordinateTable
[int]$degrees
[int]$minutes
[int]$seconds

# Get basic file properties
# -------------------------
[string]$directory = "E:\John's documents\~ Household\Land\Tobacco Road\~ Photos, house and yard\2021\"
[string]$fileName = "2021-11-16 111715 .jpg"
[string]$target = $directory + $fileName

Get-ItemProperty -path $target | Format-List -Property * -Force

# Get known image detail properties
# =================================
# Create an ImageFile object and load an image file
# -------------------------------------------------
$image = New-Object -ComObject Wia.ImageFile
$image.LoadFile($target)

# Read specified metadata
# -----------------------
"Latitude reference is '" + $image.Properties.Item('GpsLatitudeRef').Value + "'.`n"
$coordinateTable = $image.Properties.Item('GpsLatitude').Value
$coordinateTable
"Latitude degrees = " + $coordinateTable[1].Value
 

canadmos

Cake Tease
May 29, 2011
14,423
11,807
Canaderp
I'm no programmer, but it looks like you're reading the data. Now you need to select what you want to use.
 

canadmos

Cake Tease
May 29, 2011
14,423
11,807
Canaderp
Oh and there are tons of scripts and whatnot on one of Microsoft's pages (Github now...maybe?), which can be useful.