Resize emoji images
This commit is contained in:
parent
270148db97
commit
0d1368fddc
|
@ -444,7 +444,7 @@ function pleroma_add_emoji {
|
|||
fi
|
||||
|
||||
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
|
||||
dialog --title $"Add Custom Emoji" \
|
||||
--msgbox $"Unable to convert empji image to png format" 6 60
|
||||
|
|
Loading…
Reference in New Issue