Page MenuHomePhabricator

Do not export SVGs as PNGs (if EReaders' SVG support is more broadly available nowadays)
Open, Needs TriagePublicFeature

Description

SVG files in wikisources are being exported as PNGs. Since SVG is a part of the epub3 spec, these files should be exported as SVGs to enable proper scaling and display on devices.

Related Objects

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Do you know what the support is like for SVGs on popular ereader devices? I haven't looked for a few years, but I remember there being issues on Kobos in c.2016.

@Samwilson Kobo, Kindle, and Koreader support SVG now. Seems to have mostly happened between 2017 and 2019.

Aklapper renamed this task from SVGs exported as PNGs to Do not export SVGs as PNGs (if EReaders' SVG support is more broadly available nowadays).Feb 25 2022, 12:14 PM
Aklapper changed the subtype of this task from "Bug Report" to "Feature Request".

Adjacent issue: SVGs exported by the math markup engine do not work in some readers where SVG is nominally supported: T270589

Koreader (or any other nanosvg readers) is due to use of cross-referenced resources (xlink). This could be fixed upstream in nanosvg.

I do not know why it does not work in Moon+Reader. The maintainer blames their upstream SVG engine.