Search code examples
node.jsimagemagickimagemagick-convert

ImageMagick: emoji in string gets written as question mark


I am using ImageMagick (in NodeJS) to write a string on top of an svg image.

If the string has a standard unicode emoji in it, the gets rendered as "?".

"This string has a 🇫🇷 emoji in it"

Gets rendered as:

"This string has a ? emoji in it"

Is there a way to get ImageMagick to render the string with the actual emoji?


Solution

  • From the ImageMagick admin in this forum thread in July 2016:

    We made an initial attempt at supporting color Emoji's and could not get it working. We don't have an ETA on when we will add support. In the mean-time, any user is welcome to submit a patch against the current code base to support color Emoji's.

    This is very likely the current state of affairs as of this moment.

    This answer, however, claims that Freetype and a tool called ftview support rendering Emoji. Check it out, might be worth a try.