A service that provides archive-aware oEmbed-compatible embeddable surrogates (social cards, thumbnails, etc.) for archived web pages (mementos).
15
stars
3
forks
source link
SVG favicons fail to generate data URIs #139
Closed
shawnmjones closed 6 years ago
Some favicons are not ICO, but SVG. The Pillow library does not work with SVG content directly, hence MementoEmbed does not convert SVG to data URIs.
The following library may be useful for detecting SVG content: https://pypi.org/project/python-magic/.
Once an SVG is detected, it can be converted to PNG. See https://cairosvg.org.
These mementos are affected: