-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
render emoji in Pillow #85
Labels
Comments
Perhaps this may help? python-pillow/Pillow#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
<#85 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AYh5FMbu2GRfgHZhdgzYOckc_IeQZ4NJks5vGZdKgaJpZM4WkLjV>
.
|
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: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
is it possible to render Text with emoji in an Image with Pillow?
The text was updated successfully, but these errors were encountered: