
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
pilmoji
Advanced tools
Pilmoji is an emoji renderer for Pillow, Python's imaging library.
Pilmoji comes equipped with support for both unicode emojis and Discord emojis.
You must have Python 3.8 or higher in order to install Pilmoji.
Installation can be done with pip:
$ pip install -U pilmoji
Optionally, you can add the [requests] option to install requests
alongside Pilmoji:
$ pip install -U pilmoji[requests]
The option is not required, instead if requests is not installed,
Pilmoji will fallback to use the builtin urllib.
You may also install from Github.
from pilmoji import Pilmoji
from PIL import Image, ImageFont
my_string = '''
Hello, world! 👋 Here are some emojis: 🎨 🌊 😎
I also support Discord emoji: <:rooThink:596576798351949847>
'''
with Image.new('RGB', (550, 80), (255, 255, 255)) as image:
font = ImageFont.truetype('arial.ttf', 24)
with Pilmoji(image) as pilmoji:
pilmoji.text((10, 10), my_string.strip(), (0, 0, 0), font)
image.show()

As seen from the example, Pilmoji defaults to the Twemoji emoji source.
If you prefer emojis from a different source, for example Microsoft, simply
set the source kwarg in the constructor to a source found in the
pilmoji.source module:
from pilmoji.source import MicrosoftEmojiSource
with Pilmoji(image, source=MicrosoftEmojiSource) as pilmoji:
...

It is also possible to create your own emoji sources via subclass.
If an emoji looks too small or too big, or out of place, you can make fine adjustments
with the emoji_scale_factor and emoji_position_offset kwargs:
pilmoji.text((10, 10), my_string.strip(), (0, 0, 0), font,
emoji_scale_factor=1.15, emoji_position_offset=(0, -2))
Contributions are welcome. Make sure to follow PEP-8 styling guidelines.
FAQs
Pilmoji is an emoji renderer for Pillow, Python's imaging library.
We found that pilmoji demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.