Created
August 14, 2020 08:39
-
-
Save ymollard/ce4fb56c0d748e0d0d17f9a603eeeeca to your computer and use it in GitHub Desktop.
Crop screen captures and make a gif
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
| #!/bin/bash | |
| # Change +0+0 (+w+h) to select the upper left point of the rectangle to be cropped | |
| for i in *png; do convert "$i" -crop 1920x1080+0+0 "cropped-$i"; done; | |
| mkdir cropped && mv cropped*png cropped && cd cropped | |
| convert -delay 10 *.png +repage animated.gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment