Created
March 15, 2017 21:47
-
-
Save steverichey/bf0c6008573de7baf8d216f03f989e1b to your computer and use it in GitHub Desktop.
chop up an Android screenshot real nice
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
#!/bin/sh | |
filename="${1%.*}" | |
convert $1 -gravity North -chop 0x72 ${filename}-trimmed.png | |
convert ${filename}-trimmed.png -gravity South -chop 0x96 ${filename}-trimmed-both.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment