Skip to content

Commit

Permalink
Script for transparent-ifying background of an emoji
Browse files Browse the repository at this point in the history
currently overwrites the emoji in question
  • Loading branch information
Matt Hughes committed Mar 18, 2017
1 parent 8752649 commit bd38bc6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions transparent.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/zsh

input_file_name_raw=${1?"gotta' gimme'a file name, yo"};
# "path/to/file.blah" -> "file.blah"
input_file_name="$(basename "${input_file_name_raw}")"
# "file.blah" -> "file-transparent.png"
file_name_to_output="${input_file_name%.*}.png"


convert ${input_file_name} -fuzz 05% -transparent white ${file_name_to_output}

0 comments on commit bd38bc6

Please sign in to comment.