I'm trying to render color Emoji with PANGO and Noto Color Emoji Font.
However, the rendered Emoji become black & white.
The Emoji is supposed to be like this:
How to reproduce:
This is the command:
Code: Select all
convert -background white -size 600x50 \
pango:"<span font=\"Noto Color Emoji\" size=\"24576\">π¦</span> <span font=\"Noto Sans CJK TC\" size=\"24576\" color=\"green\">T-Rex in Traditional Chinese is ζ΄ιΎ</span>" \
pango.jpg
Code: Select all
convert -debug all -background white -size 600x50 pango:"<span font=\"Noto Color Emoji\" size=\"24576\">π¦</span> <span font=\"Noto Sans CJK TC\" size=\"24576\" color=\"green\">T-Rex in Traditional Chinese is ζ΄ιΎ</span>" pango.jpg
2017-10-25T23:33:33+08:00 0:00.000 0.000u 6.8.9 Configure convert[14093]: utility.c/ExpandFilenames/945/Configure
Command line: convert {-debug} {all} {-background} {white} {-size} {600x50} {pango:<span font="Noto Color Emoji" size="24576">π¦</span> <span font="Noto Sans CJK TC" size="24576" color="green">T-Rex in Traditional Chinese is ζ΄ιΎ</span>} {pango.jpg}
2017-10-25T23:33:33+08:00 0:00.000 0.000u 6.8.9 Configure convert[14093]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/usr/share/ImageMagick-6/colors.xml"
2017-10-25T23:33:33+08:00 0:00.000 0.000u 6.8.9 Configure convert[14093]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9//config-Q16/colors.xml"
2017-10-25T23:33:33+08:00 0:00.000 0.000u 6.8.9 Configure convert[14093]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/etc/ImageMagick-6/colors.xml"
2017-10-25T23:33:33+08:00 0:00.000 0.000u 6.8.9 Configure convert[14093]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/usr/share/doc/ImageMagick-6/colors.xml"
2017-10-25T23:33:33+08:00 0:00.000 0.000u 6.8.9 Configure convert[14093]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/root/.config/ImageMagick/colors.xml"
2017-10-25T23:33:33+08:00 0:00.000 0.000u 6.8.9 Configure convert[14093]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/root/.magick/colors.xml"
2017-10-25T23:33:33+08:00 0:00.000 0.000u 6.8.9 Configure convert[14093]: color.c/LoadColorCache/2181/Configure
Loading color file "/etc/ImageMagick-6/colors.xml" ...
2017-10-25T23:33:33+08:00 0:00.000 0.000u 6.8.9 Configure convert[14093]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/usr/share/ImageMagick-6/coder.xml"
2017-10-25T23:33:33+08:00 0:00.000 0.000u 6.8.9 Configure convert[14093]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9//config-Q16/coder.xml"
2017-10-25T23:33:33+08:00 0:00.000 0.000u 6.8.9 Configure convert[14093]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/etc/ImageMagick-6/coder.xml"
2017-10-25T23:33:33+08:00 0:00.000 0.000u 6.8.9 Configure convert[14093]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/usr/share/doc/ImageMagick-6/coder.xml"
2017-10-25T23:33:33+08:00 0:00.000 0.000u 6.8.9 Configure convert[14093]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/root/.config/ImageMagick/coder.xml"
2017-10-25T23:33:33+08:00 0:00.000 0.000u 6.8.9 Configure convert[14093]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/root/.magick/coder.xml"
2017-10-25T23:33:33+08:00 0:00.000 0.000u 6.8.9 Configure convert[14093]: coder.c/LoadCoderCache/799/Configure
Loading coder configuration file "/etc/ImageMagick-6/coder.xml" ...
2017-10-25T23:33:33+08:00 0:00.000 0.000u 6.8.9 Module convert[14093]: module.c/OpenModule/1275/Module
Searching for module "PANGO" using filename "pango.la"
2017-10-25T23:33:33+08:00 0:00.000 0.000u 6.8.9 Module convert[14093]: module.c/GetMagickModulePath/561/Module
Searching for coder module file "pango.la" ...
2017-10-25T23:33:33+08:00 0:00.000 0.000u 6.8.9 Module convert[14093]: module.c/OpenModule/1284/Module
Opening module at path "/usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9//modules-Q16/coders/pango.la"
2017-10-25T23:33:33+08:00 0:00.010 0.000u 6.8.9 Module convert[14093]: module.c/OpenModule/1311/Module
Method "RegisterPANGOImage" in module "PANGO" at address 0x7f78f1be10e0
2017-10-25T23:33:33+08:00 0:00.010 0.000u 6.8.9 Module convert[14093]: module.c/OpenModule/1325/Module
Method "UnregisterPANGOImage" in module "PANGO" at address 0x7f78f1be11a0
2017-10-25T23:33:33+08:00 0:00.010 0.000u 6.8.9 Policy convert[14093]: policy.c/IsRightsAuthorized/574/Policy
Domain: Coder; rights=Read; pattern="PANGO" ...
2017-10-25T23:33:33+08:00 0:00.010 0.000u 6.8.9 Resource convert[14093]: resource.c/AcquireMagickResource/279/Resource
Area: 240KB/240KB/1.0241GB
2017-10-25T23:33:33+08:00 0:00.010 0.000u 6.8.9 Resource convert[14093]: resource.c/AcquireMagickResource/279/Resource
Memory: 240KB/234KiB/488.3MiB
2017-10-25T23:33:33+08:00 0:00.010 0.000u 6.8.9 Cache convert[14093]: cache.c/OpenPixelCache/3588/Cache
open <span font="Noto Color Emoji" size="24576">π¦</span> <span font="Noto Sans CJK TC" size="24576" color="green">T-Rex in Traditional Chinese is ζ΄ιΎ</span>[0] (Heap Memory, 600x50 234KiB)
2017-10-25T23:33:33+08:00 0:00.010 0.000u 6.8.9 Resource convert[14093]: resource.c/AcquireMagickResource/279/Resource
Memory: 120KB/352KiB/488.3MiB
2017-10-25T23:33:33+08:00 0:00.010 0.000u 6.8.9 Resource convert[14093]: resource.c/RelinquishMagickResource/862/Resource
Memory: 120KB/234KiB/488.3MiB
2017-10-25T23:33:33+08:00 0:00.010 0.000u 6.8.9 Resource convert[14093]: resource.c/RelinquishMagickResource/862/Resource
Map: 120KB/16EiB/976.7MiB
2017-10-25T23:33:33+08:00 0:00.040 0.020u 6.8.9 Resource convert[14093]: resource.c/RelinquishMagickResource/862/Resource
Memory: 120KB/117KiB/488.3MiB
2017-10-25T23:33:33+08:00 0:00.040 0.020u 6.8.9 Module convert[14093]: module.c/OpenModule/1275/Module
Searching for module "JPEG" using filename "jpeg.la"
2017-10-25T23:33:33+08:00 0:00.040 0.020u 6.8.9 Module convert[14093]: module.c/GetMagickModulePath/561/Module
Searching for coder module file "jpeg.la" ...
2017-10-25T23:33:33+08:00 0:00.040 0.020u 6.8.9 Module convert[14093]: module.c/OpenModule/1284/Module
Opening module at path "/usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9//modules-Q16/coders/jpeg.la"
2017-10-25T23:33:33+08:00 0:00.040 0.020u 6.8.9 Module convert[14093]: module.c/OpenModule/1311/Module
Method "RegisterJPEGImage" in module "JPEG" at address 0x7f78edd926a0
2017-10-25T23:33:33+08:00 0:00.040 0.020u 6.8.9 Module convert[14093]: module.c/OpenModule/1325/Module
Method "UnregisterJPEGImage" in module "JPEG" at address 0x7f78edd928b0
2017-10-25T23:33:33+08:00 0:00.040 0.020u 6.8.9 Policy convert[14093]: policy.c/IsRightsAuthorized/574/Policy
Domain: Coder; rights=Write; pattern="JPG" ...
2017-10-25T23:33:33+08:00 0:00.040 0.030u 6.8.9 Policy convert[14093]: policy.c/IsRightsAuthorized/574/Policy
Domain: Path; rights=Write; pattern="pango.jpg" ...
2017-10-25T23:33:33+08:00 0:00.040 0.030u 6.8.9 Policy convert[14093]: policy.c/IsRightsAuthorized/574/Policy
Domain: Path; rights=Write; pattern="pango.jpg" ...
2017-10-25T23:33:33+08:00 0:00.040 0.030u 6.8.9 Coder convert[14093]: jpeg.c/WriteJPEGImage/2180/Coder
Image resolution: 0,0
2017-10-25T23:33:33+08:00 0:00.040 0.030u 6.8.9 Resource convert[14093]: resource.c/AcquireMagickResource/279/Resource
Memory: 90KB/205KiB/488.3MiB
2017-10-25T23:33:33+08:00 0:00.040 0.030u 6.8.9 Resource convert[14093]: resource.c/RelinquishMagickResource/862/Resource
Memory: 90KB/117KiB/488.3MiB
2017-10-25T23:33:33+08:00 0:00.040 0.030u 6.8.9 Coder convert[14093]: jpeg.c/WriteJPEGImage/2262/Coder
Interlace: non-progressive
2017-10-25T23:33:33+08:00 0:00.040 0.030u 6.8.9 Coder convert[14093]: jpeg.c/WriteJPEGImage/2276/Coder
Quality: 0
2017-10-25T23:33:33+08:00 0:00.040 0.030u 6.8.9 Coder convert[14093]: jpeg.c/WriteJPEGImage/2501/Coder
Storage class: DirectClass
2017-10-25T23:33:33+08:00 0:00.040 0.030u 6.8.9 Coder convert[14093]: jpeg.c/WriteJPEGImage/2503/Coder
Depth: 16
2017-10-25T23:33:33+08:00 0:00.040 0.030u 6.8.9 Coder convert[14093]: jpeg.c/WriteJPEGImage/2509/Coder
Number of colors: unspecified
2017-10-25T23:33:33+08:00 0:00.040 0.030u 6.8.9 Coder convert[14093]: jpeg.c/WriteJPEGImage/2511/Coder
JPEG data precision: 8
2017-10-25T23:33:33+08:00 0:00.040 0.030u 6.8.9 Coder convert[14093]: jpeg.c/WriteJPEGImage/2566/Coder
Image colorspace is RGB
2017-10-25T23:33:33+08:00 0:00.040 0.030u 6.8.9 Coder convert[14093]: jpeg.c/WriteJPEGImage/2568/Coder
Sampling factors: 2x2,1x1,1x1
2017-10-25T23:33:33+08:00 0:00.040 0.030u 6.8.9 Resource convert[14093]: resource.c/AcquireMagickResource/279/Resource
Memory: 1.8KB/119KiB/488.3MiB
2017-10-25T23:33:33+08:00 0:00.040 0.030u 6.8.9 Resource convert[14093]: resource.c/RelinquishMagickResource/862/Resource
Memory: 1.8KB/117KiB/488.3MiB
2017-10-25T23:33:33+08:00 0:00.040 0.030u 6.8.9 Resource convert[14093]: resource.c/RelinquishMagickResource/862/Resource
Map: 1.8KB/16EiB/976.7MiB
2017-10-25T23:33:33+08:00 0:00.040 0.030u 6.8.9 Resource convert[14093]: resource.c/RelinquishMagickResource/862/Resource
Memory: 1.8KB/115KiB/488.3MiB
2017-10-25T23:33:33+08:00 0:00.040 0.030u 6.8.9 Cache convert[14093]: cache.c/DestroyPixelCache/942/Cache
destroy <span font="Noto Color Emoji" size="24576">π¦</span> <span font="Noto Sans CJK TC" size="24576" color="green">T-Rex in Traditional Chinese is ζ΄ιΎ</span>[0]
2017-10-25T23:33:33+08:00 0:00.040 0.030u 6.8.9 Resource convert[14093]: resource.c/RelinquishMagickResource/862/Resource
Memory: 240KB/16EiB/488.3MiB
How may I render the Emoji with color?
Thanks a lot .
Version:
Code: Select all
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
Code: Select all
convert --version
Version: ImageMagick 6.8.9-9 Q16 x86_64 2017-07-31 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates: bzlib cairo djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png rsvg tiff wmf x xml zlib
Code: Select all
convert -list format | grep PANGO
PANGO* PANGO r-- Pango Markup Language (Pangocairo 1.38.1)