Created
July 12, 2016 13:54
-
-
Save IdoBar/b990b3039372f4958747f708703f1f04 to your computer and use it in GitHub Desktop.
FlipImage PowerShell script used to rotate images in windows from R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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