tde-devs@chat.jabb.im < 2022/02/15 >
[00:25]michelec2 has joined
[03:57]michelec2 has left
[14:46]blu.256 has joined
[14:50]blu.256: What is the difference of KSVG in tdelibs and KSVG in tdegraphics?
[14:54]blu.256: Nevermind
[14:58]Slávek: I do not know whether the purpose of KSVG in tdegraphics is a more comprehensive SVG files viewer.
[15:00]blu.256: I figured out KSVG in tdebase can only be used for drawing icons while KSVG in tdegraphics is a more full implementation with its own widget/part
[15:00]Slávek: While KSVG in tdelibs is only targeted for SVG icons rendering.
[15:04]blu.256: So the KSVG part from tdegraphics is used to show a SVG url, but SVG images embedded in HTML pages can't be shown as TDEHTML doesn't embed the KSVG part
[15:04]blu.256: (I think)
[15:12]Slávek: I watch MIME types and for common image types there is available tdehtmlimage, while for SVG not.
[15:28]blu.256: I see in tdehtml/misc/loader.cpp that there is no possible way it can deal with SVG images
Probably embedding SVG in TDEHTML will mean needing to use KSVG from tdegraphics
[15:36]Slávek: I do not know if SVG could be added into supported types (see buildAcceptHeader) and rendered in the same way as icons.
[15:46]blu.256: I tried to, but there are limitations. KSVGIconEngine needs a width and a height to operate, and it scales the rendered image to these dimensions, while SVG files can have width and height of their own. Overcoming this would mean modifying KSVGIconEngine, which I'm not sure is much better an idea than using KSVG from tdegraphics.