Last active
December 22, 2015 10:58
-
-
Save kalkulus/6462165 to your computer and use it in GitHub Desktop.
PHP: shell onliner - image rotate 180 degrees
This file contains hidden or 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
php -r '$img = imagecreatefromjpeg($argv[1]); $rotate = imagerotate($img, 180, 0); imagejpeg($rotate, basename($argv[1],".jpg")."_rotated.jpg");' my_image.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment