resvg icon indicating copy to clipboard operation
resvg copied to clipboard

`resvg` silently skips emoji when `raster-images` feature is turned off

Open si14 opened this issue 1 year ago • 3 comments

Reproduction repo: https://github.com/si14/resvg-emoji-bug

With raster-images enabled:

with-raster-images

Without:

without-raster-images

That was quite fun to debug 😅

si14 avatar Dec 17 '24 22:12 si14

How about enabling logs? It would print "Images decoding was disabled by a build feature.".

RazrFalcon avatar Dec 18 '24 08:12 RazrFalcon

@RazrFalcon at the very least the requirement is not reflected in the documentation or the log message itself. Emoji fonts might secretly be images and thus require raster-images, but it's not trivially evident.

si14 avatar Dec 18 '24 12:12 si14

Yes, we should add logging to examples and update docs.

Emoji fonts might secretly be images

They are PNGs in 99% of the cases.

RazrFalcon avatar Dec 18 '24 12:12 RazrFalcon