



resvg supports a "static SVG Full 1.1 subset", which is much more than QtSvg, which "officially supports only a tiny portion of the SVG Tiny 1.2 subset".Ĭmake/Modules/FindRESVG.cmake will try to find the resvg library and, if it is missing, libopenshot will be compiled and function exactly as it does now. svg extension, the rendering is performed by an external library (resvg.so) and the rendered image is saved to the homePath()/.openshot_qt/cache directory. I'm not sure what else will need to be changed for other pre-packaged builds as I'm only ever using AppImage builds, even for my own local testing.īasically, if the image file has an. There will need to a change to openshot_qt/installer/build-server.py and openshot_qt/freeze.py so that the resvg.so library is packaged with the AppImage builds. I use them as search anchors to jump around in files quickly.

I'll remove the lines with my initials ( RDA) before doing the actual PR. OMG! I can't believe I messed up the PR for this! I somehow PR'd zero changes back into my dev branch instead of here.Īt any rate, would, , and/or take a look at my changes and do a quick sanity check on master.N3WWN:resvg_rendering Please let me know if I can provide any additional information or help. The OSP file is included in the attached zip archive, too: SVG rendering issue - 171128.ospĪn Openshot 2.4.1 rendered video that shows each of the 3 files and demonstrates that the issue is present in the final export (not just the preview) is available here: This file is provided in the attached zip archive: Stage 1 stats.png In order to use this SVG file, I had to convert it to a PNG on the command line and import the transparent image. This file is provided in the attached zip archive: Stage 1 stats_offset.svg In order to better see how Openshot is rendering the SVG file, I copied the file and manually edited it, adding an x-offset of -800 pixels. This file is provided in the attached zip archive: Stage 1 stats.svgĭirectly using/importing this SVG file within Openshot results in very different rendering, most of which is off screen due to the text anchor point being honored, but the alignment is ignored. Starting with one of the stock titles and using the Advanced Editor (inkscape), I created a title using the Shlop font, made it green and turned the stroke red. I like to have fun with them (sometimes) and wanted a creepy font with fun colors for a Halloween-themed video I was working on. I use titles to overlay statistics on my videos. I've seen this since one of the Openshot 2.3 versions (never used anything older than 2.3) and can confirm the issue is still present in 2.4.1 cuz I just used 2.4.1 to prepare the support files for this issue.
