This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Simple script providing multiline text draw with emoji support (Pillow & emojicdn)""" | |
import io | |
from requests import get | |
from textwrap import wrap | |
from urllib.parse import quote_plus | |
from emoji import emojize, demojize, UNICODE_EMOJI | |
from PIL import Image, ImageDraw, ImageFont, UnidentifiedImageError | |
#-----# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tested on Python 3.6.1 | |
# install: pip install --upgrade arabic-reshaper | |
import arabic_reshaper | |
# install: pip install python-bidi | |
from bidi.algorithm import get_display | |
# install: pip install Pillow | |
from PIL import ImageFont |