Merge pull request #140 from dougfelt/thumb_bw_fix

Fix emoji thumbnail generation to prevent grayscale pngs.
pull/144/head
dougfelt 2017-05-25 11:18:07 -07:00 committed by GitHub
commit 379fcaf955
1 changed files with 2 additions and 2 deletions

View File

@ -38,10 +38,10 @@ logger = logging.getLogger('emoji_thumbnails')
def create_thumbnail(src_path, dst_path):
# uses imagemagik
# we need imagex exactly 72x72 in size, with transparent background
# we need images exactly 72x72 in size, with transparent background
subprocess.check_call([
'convert', '-thumbnail', '72x72', '-gravity', 'center', '-background',
'none', '-extent', '72x72', src_path, dst_path])
'none', '-extent', '72x72', src_path, 'PNG32:' + dst_path])
def get_inv_aliases():