Created
November 25, 2016 00:43
-
-
Save AlexElvers/9b51e9ed6516db30c5f00c225920a370 to your computer and use it in GitHub Desktop.
Make the top left pixel slightly transparent so that Twitter does not convert it into ugly JPEG
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
twittersafepng() { | |
outfile="${1/.png}_twittersafe.png" | |
convert "$1" -alpha on -fill '#000000fe' -draw 'matte 0,0 point' "$outfile" | |
echo "written to $outfile" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment