dlib icon indicating copy to clipboard operation
dlib copied to clipboard

Support SVG images

Open icibiri opened this issue 8 years ago • 1 comments

icibiri avatar Oct 10 '17 19:10 icibiri

Yes, SVG support would be cool. Since dlib already has an XML parser, this shouldn't be very hard, but we need bezier shapes first.

gecko0307 avatar Oct 10 '17 20:10 gecko0307

Closing this FR as impractical. SVG is a huge standard that supports a lot of features that are not trivial to implement properly without third-party libraries (and efficiently without hardware acceleration). dlib.image.canvas is not sufficient to implement SVG, we need more powerful graphics pipeline for that, but I decided not to turn dlib into a graphics engine from the start. Realistically, it would be possible to implement only a subset of SVG, for rendering plain vector shapes, but for such cases using SVG seems excessive, this can be done directly with dlib.image.canvas. And the whole point of SVG is data exchange between different programs, so it's not reasonable to write a loader that won't fully support SVG files from any editing software.

gecko0307 avatar May 31 '23 22:05 gecko0307