-
-
Save Bioblaze/7443ac50713f5fefe8eddae6000f3e86 to your computer and use it in GitHub Desktop.
convert images and videos screenshots to something that's nice to paste in github
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
if [[ "$1" == *.mp4 ]] | |
then | |
/Users/me/bin/togif "$1" | |
fi | |
if [[ "$1" == *.png ]] | |
then | |
/Users/me/bin/topic "$1" | |
fi |
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
/usr/local/bin/ffmpeg -i "$1" -pix_fmt rgb24 -r 10 -y -s 338x600 "${1/%.mp4/.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
sips -Z 600 "$1"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment