Resize emoji images

This commit is contained in:
Bob Mottram 2017-11-11 11:42:08 +00:00
parent 270148db97
commit 0d1368fddc
1 changed files with 1 additions and 1 deletions

View File

@ -444,7 +444,7 @@ function pleroma_add_emoji {
fi fi
if [[ "$image_url" == *'.jpg' || "$image_url" == *'.jpeg' || "$image_url" == *'.gif' ]]; then if [[ "$image_url" == *'.jpg' || "$image_url" == *'.jpeg' || "$image_url" == *'.gif' ]]; then
convert $image_filename $PLEROMA_DIR/custom_emoji/${shortcode}.png convert $image_filename -resize 64x64 $PLEROMA_DIR/custom_emoji/${shortcode}.png
if [ ! -f $PLEROMA_DIR/custom_emoji/${shortcode}.png ]; then if [ ! -f $PLEROMA_DIR/custom_emoji/${shortcode}.png ]; then
dialog --title $"Add Custom Emoji" \ dialog --title $"Add Custom Emoji" \
--msgbox $"Unable to convert empji image to png format" 6 60 --msgbox $"Unable to convert empji image to png format" 6 60