Is it possible to render multi-coloured emojis with ImageMagick?

我是研究僧i 提交于 2019-12-01 08:51:06

I think you are out of luck... ImageMagick forum.

I suppose you could save all the glyphs as PNG files and append them together to make a "textspeak sentence"

convert smile.png StupidShoeThing.png arnie.png +append txtspeak.png

You can use pango for text rendering (as of v6.7.6-3):

convert pango:'Hello! 😀How are you?' example.png

Produces this image (using v7.0.8-36)

See https://www.imagemagick.org/Usage/text/#pango for more details on how to use pango with ImageMagick


I'm on Ubuntu 18.04, using ImageMagick 7.0.8-36 (by compiling from source), which looks to have this configuration

Features: Cipher DPC HDRI OpenMP 
Delegates (built-in): bzlib djvu fontconfig freetype jbig jng jpeg lcms lqr lzma openexr pangocairo png tiff wmf x xml zlib

And it looks like I'm using Pangocairo 1.40.14

$ convert -list format | grep -i pango
    PANGO* r--   Pango Markup Language (Pangocairo 1.40.14)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!