SVGwlx 0.0.2 - lister plugin

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

Moderators: Hacker, petermad, Stefan2, white

User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2Alextp
Thanks for that hint.

I've tested it a little bit and seems to work OK.

One problematic thing will be to check GIMP DLL files licensing because rsvg-convert.exe needs some of them to work (4MB, 16 files). I will also have to compare conversion times because that solution gives me the feeling of being slower. I'll try to find out the best solution soon.

Eh... If someone more skilled could take a look on rsvg-view.exe code...
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

It cannot be slower (same code as IncScape)
smth wrong with DLL..
Last edited by Alextp on 2009-04-13, 16:38 UTC, edited 1 time in total.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Also:
The rsvg can be compiled 'as is'
(source on sf.net)
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

found a talk about tool:
http://meta.wikimedia.org/wiki/Talk:SVG_image_support
See "rsvg for Windows port", do you see it?
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2Alextp
Unfortunatelly my Borland Builder crashes when I try to compile old sources of my plugin and I can't figure out why. I've tried to reinstall it without success.

That is why I can't make it right away :(

So... either I will write this WLX again in Visual Studio or someone will take existing sources and change "Inkscape calling" lines to valid tool.

Second solution is is a work for just few minutes in Builder and I really wanted to do it but fate was against me... Rewriting WLX completely will take a time.

Thank you for your help after all.

PS. If someone wants to fix it SVG converter is here:
http://cid-e12762cbdafb3c47.skydrive.live.com/self.aspx/TC/converter.zip
Sources:
http://cid-e12762cbdafb3c47.skydrive.live.com/self.aspx/TC/svgwlx%7C_0.02%7C_src.zip
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

fp
what about writing plugin in Delphi.
you can use ATImageBox for that (atorg.net.ru/delphi).
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

Finally I rewrote this plugin in VS for using rsvg converter.

If anyone is willing to test, here it is:
http://cid-e12762cbdafb3c47.skydrive.live.com/self.aspx/TC/svgwlx%7C_vs%7C_0.1.zip

Sources:
http://cid-e12762cbdafb3c47.skydrive.live.com/self.aspx/TC/SVGwlx%7C_vs%7C_0.1%7C_src.zip

I'd like to ask people here for two things:

1. How should I licence that? I am not good with whole GPL stuff ;)

2. Why if I use resizing method provided in Lister plugins SDK, something strange happens with transparent images background?
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

I can suggest MPL (Mozilla PL), its used in lotof stuff.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

pluginst.inf:

Code: Select all

[plugininstall] 
description=SVG viewer for Lister
type=wlx 
file=SVGwlx_vs.wlx
defaultdir=SVG
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Also: the DLLs are missing, so converter doesn't work.
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2Alextp
The problem is in converter and libraries it uses. I am not sure which licence is proper because some files seems to fall under Mozilla, other - under GPL (v. 2 or 3). I can only assume that I should use wider one (but which is wider). Personally I'd choose BSD (or similar) because I don't like GPL v.3 completely.

BTW Any idea about "background issue" (described below)?

PNG files are generated correctly and I can load them using GdiPlus. There is no problem with their transparency no matter which colour I choose while getting HBITMAP. But as soon as I un-comment resizing procedure (from Lister SDK) background seems to change. Sometimes it is completely transparent, sometimes goes full blue and sometimes it looks like mix of GDI colour and TC background. I don't know what is the reason of this behaviour because it can happen for the same SVG.

Well, since it looks like TC resizes thumbs properly by it's own I could forget about it but it bothers me ;)
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
Flint
Power Member
Power Member
Posts: 3506
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

fenix_productions
GPL plugins for TC are not allowed. GPL forbids linking the GPLed code with closed one. You can use LGPL instead. Or take other similar license that allows runtime linking between open and closed code.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2Alextp
1. Which DLLs? I've tried to track (using FileAlyzer) them all but perhaps I overlooked something.
2. I will add INF after few more tests. I will upload it to totalcmd.net then.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
flm404
Junior Member
Junior Member
Posts: 25
Joined: 2007-12-02, 23:56 UTC

Post by *flm404 »

libgmodule-2.0-0.dll
iconv.dll
bzip2.dll
libpangowin32-1.0.0.dll
SFMBE (Sorry for my bad english)
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2flm404
Thank you. I've uploaded plugin once again (same URL).
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
Post Reply