![]() Tracked in Phabricator Task T68672 RESOLVED An SVG file may use a font that Commons does not have. Even where librsvg works flawlessly, there can be compatibility issues. For example, librsvg does not support the text on a path feature, and librsvg has problems with top-to-bottom text. Consequently, SVG files need to avoid or workaround those problems. Several of librsvg's missing features and bugs impact SVG images on Commons. Although it manages to fix longstanding problems such as the mask bug ( phab:T55899) and provides initial support for SVG 2.0, some fixes on the upstream remain unavailable to us due to our old Debian release ( phab:T265549). This is an early version of the librsvg rewrite in Rust programming language. Another reason is that some SVG files are large (e.g., 1 MB), but the image when displayed on a monitor might be 160×320 pixels, which would be an uncompressed 51200 pixels (153600 bytes for 24-bit color).Īs of May 2023, Commons is running librsvg 2.44.10 ( phab:T193352), already four years old by the time of its adoption. A raster version which can be efficiently converted from the SVG source helps overcome this technical problem. One reason for this choice is that rendering an SVG in real-time slows down older computers or operating systems. The displayed image is not SVG and is therefore not animated or interactive. Librsvg (alternatively "RSVG") is the rendering library used by MediaWiki to rasterize the SVG files into the PNG bitmap format that is served to Wikimedia pages.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |