emoji
emoji copied to clipboard
render emoji in Pillow
is it possible to render Text with emoji in an Image with Pillow?
Perhaps this may help? https://github.com/python-pillow/Pillow/issues/1774
thanks but i want colored emoji. Like if you writing in whatsapp or facebook.
where you able to find a solution?
No
Am Do., 24. Jan. 2019, 12:21 hat ALEXIS LE GOFF [email protected] geschrieben:
where you able to find a solution?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/carpedm20/emoji/issues/85#issuecomment-457162606, or mute the thread https://github.com/notifications/unsubscribe-auth/AYh5FMbu2GRfgHZhdgzYOckc_IeQZ4NJks5vGZdKgaJpZM4WkLjV .
is it possible to render Text with emoji in an Image with Pillow?
I've created auepa for it, but emojicdn's much faster
from os import *
from emoji import *
from PIL import Image
from requests import get
del open
chdir(path.expanduser("~/Desktop"))
#---#
Emoji = ":snake:"
Style = "twitter" # http://github.com/benborgers/emojicdn#emoji-style
#---#
im = Image.open(
get(
"https://emojicdn.elk.sh/{0}?style={1}".format(
emojize(Emoji.lower(), use_aliases = 1),
("?style=" + Style.lower()) if Style else ""
),
stream = 1).raw
)
)
im = im.crop(im.getbbox())
im.save(demojize(Emoji[1:-1]) + ".png")
im.show()
There is a library for doing this that supports different emoji styles: https://github.com/jay3332/pilmoji -- https://pypi.org/project/pilmoji/