Created
May 22, 2022 15:23
-
-
Save davidchchang/3210c6da5128cbd30ea3ba4fdb7e14c0 to your computer and use it in GitHub Desktop.
Rotate an image using default macOS Terminal CLI
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
| # Rotates image.jpg 23 degrees clockwise and "fill in" the empty space with white. | |
| # If you rotate PNGs, the alpha channel should be retained. | |
| # From: https://apple.stackexchange.com/a/60570/106967 | |
| sips -r 23 --padColor FFFFFF image.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment