Upload images from folder to a program using powershell

by busybee235 at 2012-10-07 06:06:11

Its like, I have a folder containing 2000+ jpg images and have folders somewhere with name 1, 1.33, 1.5, 2 with are basically ratio names. I want if powershell could upload those images and crop them according to the closest aspect ratios(1, 1.33, 1.5, 2) and save into respective ratio folder.

Or tell this software http://ekot.dk/programmer/JPEGCrops/ to upload image and use its functions to crop image to closest ratio and save to respective ratio 1, 1.33, 1.5, 2 folder.

if you are not able to understand, its like:

powershell uploads images from "C:\images" folder

check each image’ ratio, by width/height

if(ratio is closest to any 1, 1.33, 1.5, 2 ) crop into that

then save it into respective 1, 1.33, 1.5, 2 folder.

by JeffH at 2012-10-09 06:41:38
If you are talking about uploading to a web site, PowerShell doesn’t have any native cmdlets for that. You would most likely need to use the .NET webclient object. As far as cropping goes, you would need some sort of command line tool that can accomplish that. If you want to automate graphically, such as a web page, you might look at AutoIt.