Subject: Compatibility with emoji>=2.0.x
Hi!
pilmoji is a great library and still works well, but it seems to rely on deprecated internals of the emoji package — namely, get_emoji_unicode_dict, which was removed in emoji>=2.0.0.
Are you planning to support newer versions of emoji?
Thanks in advance!
PS.: Here we have a script to check the situation:
After pip install --user --upgrade emoji pilmoji pillow
testPilmoji.py
from PIL import Image, ImageDraw, ImageFont
from pilmoji import Pilmoji
import emoji
# Verificar versiones
print(f"emoji version: {emoji.__version__}")
try:
import importlib.metadata
print(f"pilmoji version: {importlib.metadata.version('pilmoji')}")
except:
pass
# Crear imagen en blanco
img = Image.new("RGB", (300, 100), (255, 255, 255))
draw = ImageDraw.Draw(img)
# Cargar fuente por defecto (puedes ajustar ruta si tienes una con soporte completo de emojis)
font = ImageFont.load_default()
# Dibujar texto con emoji
try:
with Pilmoji(img) as pilmoji:
pilmoji.text((10, 40), "Hello world! 😀❤️🍕", font=font)
img.save("test_pilmoji_output.png")
print("✅ Imagen creada con éxito.")
except Exception as e:
print("❌ Error durante el renderizado con Pilmoji:")
print(e)
Subject: Compatibility with emoji>=2.0.x
Hi!
pilmoji is a great library and still works well, but it seems to rely on deprecated internals of the emoji package — namely, get_emoji_unicode_dict, which was removed in emoji>=2.0.0.
Are you planning to support newer versions of emoji?
Thanks in advance!
PS.: Here we have a script to check the situation:
After
pip install --user --upgrade emoji pilmoji pillowtestPilmoji.py