View SVG images in Universal Viewer

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
UnivUser
Junior Member
Junior Member
Posts: 4
Joined: 2013-04-16, 14:10 UTC

View SVG images in Universal Viewer

Post by *UnivUser »

I'll make this short and provide more info as requested. I think this is a configuration setting or something like that, so I don't want to load this with a bunch of unnecessary stuff at this time.

I'm a new, licensed, Universal Viewer user. I want to view SVG files with UV. I installed the "CADView\CADView.wlx" and "SGViewer\SGViewer" plug-ins. However, when I open any SVG file, the file's ASCII-Text is displayed as a text file. Parts of it are highlighted in color like when viewing an HTM file, so UV recognizes the ".svg" as a structured file type. However, the SGViewer plug-in description indicates that the image will be displayed (like a raster image would be). I tried two files, one 3 kB that I downloaded from an InkScape Gallery and one from a Wikipedia webpage about SVG.

I have previously installed the SysWrite plugin (I learned about UV when I was using SysWrite) and it didn't work right because I needed to make a configuration change. I think that's the case with the SVG files, or maybe there's some kind of "view image" button I don't know about.

And, yes, I did search the Forum for "SVG", but most of the info was old and/or didn't apply
UnivUser
Junior Member
Junior Member
Posts: 4
Joined: 2013-04-16, 14:10 UTC

Post by *UnivUser »

This is UnivUser making a Quick Reply to make sure the update auto-Email will get to mey Email address.
iana
Senior Member
Senior Member
Posts: 345
Joined: 2010-07-27, 22:00 UTC

Post by *iana »

Seeing as svg are text files UV more or less works as it should,
You need to do 2 things
#1 get and install a svg plugin

http://www.totalcmd.net/plugring/svgwlx.html
freeware but needs Inkscape installed
or
http://www.totalcmd.net/plugring/CADView.html
shareware unregistered versions display a logo

#2 configure UV to use plugins first
in Options->Plugins check plugins have higher priority then internal viewers

but you can always hit the #7 button to load the opened file with a lister plugin
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

iana wrote:Seeing as svg are text files UV more or less works as it should,
You need to do 2 things
#1 get and install a svg plugin

http://www.totalcmd.net/plugring/svgwlx.html
freeware but needs Inkscape installed
Within the same skydrive folder location there should be svgwlx_vs_0.1.zip which does not need Inkscape (it relies on rsvg-convert.exe).

BUT since I am not developing it any more, I am not sure how stable it still is.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
UnivUser
Junior Member
Junior Member
Posts: 4
Joined: 2013-04-16, 14:10 UTC

Post by *UnivUser »

Thank you for the CADViewer information.

I had already installed the CADViewer, and "plugins have higher priority then internal viewers" was still checked from the default setting. Also, thank you for the link to the CADViewer plugin. All I could find on the Internet about it was VERY expensive, and there was nothing about a plugin anywhere.

I wasn't clear in my first entry, but I'm using UV as a separate application, not as a plugin to Total Commander. I'm still using "Lister" in Total Commander because it's enough for some things, but most times I use UV, and with the SynWrite plugin it's complete - except for viewing SVG images. I much prefer keeping UV separate rather than bunch everything together in TC.

After you essentially told me I had the right plugin with CADViewer, I started poking around in UV to investigate the problem. I found out the SVG problem involves the previously installed SynWrite plugin, Syn2.wlx. I don't know why, nor how to work around it, but I got UV to display SVGs (with the "Trial Version comments" over them) using the CADViewer plugin after I UNCHECKED the SynWrite plugin. Apparently there's a priority issue between the plugins. If an SVG image is being displayed and I CHECK the SynWrite plugin, UV reverts to displaying the SVG-file text.

I would like to leave the SynWrite and CADViewer plugins enabled all of the time. If that can't be done, I'll just leave SynWrite enabled, and disable it when I want to view an SVG image. Or, I can create another Forum request about the plugins' priorities if that would clarify the issue and give it visibility in the Forum.

And, thank you for the svgwlx_vs_0.1.zip suggestion, but I think CADViewer will do the trick for me.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

About Synw plugin- Open Plugins dialog and MOVE Synw below the Cadview.

#2 thing: open Synw properties in Plugins dialog, and check out Synw detect-string. U may see "svg" listed in it. Delete "svg" then
UnivUser
Junior Member
Junior Member
Posts: 4
Joined: 2013-04-16, 14:10 UTC

Post by *UnivUser »

That took care of it!

Thank you again for putting up with my Novice questions. I do search the Forum first, but this SVG issue wasn't discussed. I see how that "detect string" works - pretty clever. UV is actually very intuitive, I just gotta become more familiar with its structure and configuration methods.
Post Reply