To be able to display the SVGs in the right language, as well as to make sure every quirk of Wikimedia wikis is preserved, add an API function that returns a SVG rendered into PNG with translations in progress applied.
Description
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Samwilson | T211637 Render image previews via RSVG | |||
Resolved | None | T151656 Install librsvg 2.40.20 on Jessie for K8s webservice |
Event Timeline
Comment Actions
This will also include setting up Docker to use the Wikimedia fork of RSVG won't it? But apart from that, I don't suppose svgtranslate's use of rsvg will require anything specific (i.e. if people are developing locally and not with Docker, they can use whatever rsvg their package manager gives them).
Also: do we set a max-size for the rendering?
Comment Actions
The staging site is now updated with this patch, and PNGs are rendering. Ready for QA.
Please try with small aspect ratios, and large images. I think there's some weird things; might just be me though. :)
Comment Actions
Works for me. Sometimes images load slowly or don't load at all. I've filed T213140: [BUG] SVG Translate fails to render some images to look at the latter.