by benchmarkjoshw (Posted Wed Dec 14, 2016 9:01 pm)
Well, the issue was with Powershell, not with NConvert. Myself and one of the guys I work with managed to cobble together a working script (which is below if anyone wants to use it for the same reason).
Thank you all for your help, this was a very enlightening experience.
Read Main Topic
Well, the issue was with Powershell, not with NConvert. Myself and one of the guys I work with managed to cobble together a working script (which is below if anyone wants to use it for the same reason).
- Code: Select all
$Dir = "C:\Users\Me\Desktop\Test_Folder\"
ForEach ($File in (Get-ChildItem $Dir -Recurse -Include *.jpg))
{
If ($File.length -gt 1MB)
{
nconvert -resize 50% 50% -overwrite $File
}
}
Thank you all for your help, this was a very enlightening experience.
Read Main Topic