Just say you wanted a csv file with dimension details of your image library - doing this with powershell
Get-ChildItem -Recurse C:\yourphotosdir -Filter *.jpg | % {
$image = [System.Drawing.Image]::FromFile($_.FullName)
if ($image.width -t 500 -and $image.height -gt 500) {
New-Object PSObject -Property @{
height_pixels = $image.Height
width_pixels = $image.Width
megapixels = ($image.Height * $image.Width)/1000/1000
megabytes = (($_.Length)/1024)/1024
name = $_.Name
fullname = $_.Fullname
date = $_.LastWriteTime
}
}
} | Export-Csv 'C:\yourphotosdir\img.csv' -NoTypeInformation
Comments
Post a Comment