How to annotate a text with emoji watermark on a image

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
tczf1128
Posts: 28
Joined: 2018-12-04T22:47:49-07:00
Authentication code: 1152

How to annotate a text with emoji watermark on a image

Post by tczf1128 »

add text like this, "πŸ’πŸ˜ŽπŸ’€πŸ’“hello".
I add Apple-Color-Emoji.ttf in /usr/share/fonts, but it not works

imagemagick version: 7.0.8-23
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to annotate a text with emoji watermark on a image

Post by fmw42 »

Imagemagick does not support any emojis at the current time, as far as I know.
tczf1128
Posts: 28
Joined: 2018-12-04T22:47:49-07:00
Authentication code: 1152

Re: How to annotate a text with emoji watermark on a image

Post by tczf1128 »

will works with pango?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to annotate a text with emoji watermark on a image

Post by fmw42 »

I do not know, but doubt it. Even it possible, with pango, fonts must be included in the system and not just called by Imagemagick.
tczf1128
Posts: 28
Joined: 2018-12-04T22:47:49-07:00
Authentication code: 1152

Re: How to annotate a text with emoji watermark on a image

Post by tczf1128 »

Code: Select all

convert -background none -size 600x50 -set colorspace sRGB pango:"πŸŒπŸ’πŸ˜ŽπŸ’€πŸ’“ε°†" pango.png
It seems work, but I dont know how to do it with imagick api
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to annotate a text with emoji watermark on a image

Post by fmw42 »

I do not know if Imagick supports PANGO. I do not see it in their docs.
Post Reply