Skip to content

Instantly share code, notes, and snippets.

@IdoBar
Created July 12, 2016 13:54
Show Gist options
  • Save IdoBar/b990b3039372f4958747f708703f1f04 to your computer and use it in GitHub Desktop.
Save IdoBar/b990b3039372f4958747f708703f1f04 to your computer and use it in GitHub Desktop.
FlipImage PowerShell script used to rotate images in windows from R
$path = $args[0]
[Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms");
$i = new-object System.Drawing.Bitmap $path
$i.RotateFlip("Rotate90FlipNone")
$i.Save($args[1],"png")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment