Skip to content

Instantly share code, notes, and snippets.

@PProvost
Created May 13, 2009 17:23
Show Gist options
  • Save PProvost/111140 to your computer and use it in GitHub Desktop.
Save PProvost/111140 to your computer and use it in GitHub Desktop.
PowerShell script for rotating a set of images.
ls *.png | % {
write-host "Rotating " + $_.Fullname;
$img = new-object system.drawing.bitmap $_.Fullname;
$img.RotateFlip("Rotate270FlipNone");
$img.Save($_.FullName)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment