Please download rsvg-convert-dll-2.40.16.7z, extract the archive and move all files (EXE + DLLs) in the root folder to the Plugins sub-directory of your XnView installation. (The contents of rsvg-convert-dll-2.40.16.7z\fonts\ and \rsvg-convert-dll-2.40.16.7z\etc\ are not required for rsvg-convert.exe to run.)
Be sure to activate Display all image file types in Tools » Options... » General » Operations. You should now be able to open SVGs in the viewer as well as batch-convert them to PNG format.
Thank you so much for your prompt and precise instructions.
I did exactly as you suggested and voila! - almost all is working as I had hoped.
The fonts of some of the SVG files only appeared as blocks like [], so I copied the folders \etc\fonts to the XnView\Plugins folder and they now appear more or less as they should.
There is, however, still one outstanding problem. When I convert some SVG files to PNG a white background shows as black after the conversion.
Your kind assistance is most sincerely appreciated.
Thanks for reporting back, John! Now I understand what the \etc\fonts\ folder is good for. (I had done my tests with SVGs that didn't have any <text> elements.)
Is it possible to upload a sample file (preferably as ZIP/RAR/7-Zip archive)?
PS: You could also give XnViewMP a try which natively supports the SVG format.
As with XnView “Classic”, you need to activate Show all graphic formats (Tools » Settings... » General » General). In addition to that, svg (and svgz) has to be removed from the exclusion list in Tools » Settings... » File list » Custom filter » Exclude.
Not a problem; attached is one example that I've been "playing" with. The fonts are far from perfect in the PNG file after converting from SVG, but I don't have any idea what - if anything - can be done about that.
It will be interesting to see what sort of result you get.
I'd like to give XnViewMP a try at some stage, but it's very late in the day here and I don't have the time to do it right now. Tomorrow, maybe, if time permits.
Once again, thanks for taking the time to help me get this sorted.
Cheers,
John
You do not have the required permissions to view the files attached to this post.
marjohn wrote:The fonts are far from perfect in the PNG file after converting from SVG, but I don't have any idea what - if anything - can be done about that.
Thanks, yet again, for all your help. Also for posting the examples, which are most useful.
I've read your 'recommendations' referenced above, and also downloaded the fonts you referred to.
If you haven't run out of patience , and have time, could you suggest which fonts I need to install to get the result you did, and where should I install them; for example, install normally into the Windows\Fonts folder, or to a folder under XnView?
marjohn wrote:could you suggest which fonts I need to install to get the result you did, and where should I install them; for example, install normally into the Windows\Fonts folder, or to a folder under XnView?
I installed all fonts in \source-sans-pro-2.020R-ro-1.075R-it\OTF\ via Control Panel to make them available system-wide.
However, this doesn't make a difference when converting with XnView Classic & RSVG
Results for conversion of weather2.svg with XnView MP: “Source Sans Pro” not installed vs. installed
Thanks for the info regarding installing the fonts. Given the fact that they don't have any effect when using XnView Classic, and only a minimal effect when used with XnView MP, I don't think I'll bother installing them at the moment.
I'm pleased to report that I no longer get the black backgrounds, so overall I'm pretty happy with the results that your advice has allowed me to achieve.
Thank you, yet again, for all your assistance (and patience) ; lot's of "hand holding" on your part, but for me it's been well worth the effort.
marjohn wrote:Given the fact that they don't have any effect when using XnView Classic, and only a minimal effect when used with XnView MP, I don't think I'll bother installing them at the moment.
Plus, we don't even know whether “Source Sans Pro” is the font used in all of your SVGs.
marjohn wrote:Thank you, yet again, for all your assistance (and patience) ; lot's of "hand holding" on your part, but for me it's been well worth the effort.
No big deal! You had an interesting question and made me learn a few things about Scalable Vector Graphics
Thanks for pointing me to the CS Manager - Ive installed this into the plugins folder and can run it and set the import size, however no matter what I do Xnview always produces a 466x466 size image. What am I doing wrong?
miksmith wrote: Mon Dec 16, 2019 10:19 pmIve installed this into the plugins folder and can run it and set the import size, however no matter what I do Xnview always produces a 466x466 size image. What am I doing wrong?
Are you sure CADImage.dll is in the Plugins subdirectory of your XnView installation?
p159804.png
The value for Maximum Width or Height of Drawing is saved in HKEY_CURRENT_USER\Software\SoftGold\CS_Plugins: