.SVG preview image background

112 views
Skip to first unread message

Chamëleon TBN

unread,
Nov 22, 2023, 2:08:47 PM11/22/23
to OneCommander
First: Thanks for this great piece of software! Make life so much easier :)

Question: Is there no option to change the background colour of .svg images that have transparent background set? Esp in dark mode the white image background ist hurting the eyes. 

Screenshot 2023-11-22 110932.png

I've tried the usage of PowerToys too, there you have an option for that. But this setting seems not have an effect on OneCommander. 

Thanks for help :)

OneCommander Support

unread,
Nov 22, 2023, 2:31:37 PM11/22/23
to OneCommander
OC uses system thumbnail providers. It is enabled .svg in my powertoys install (although I don't see setting for transparency there), and I have just checked but the bitmap that OC gets when requesting thumbnail from the system doesn't contain transparency. 

Emanuel Teixeira

unread,
Nov 22, 2023, 4:40:01 PM11/22/23
to OneCommander
powertoys changes the background of the preview pane (win explorer) not the thumbnails
powertoys > file explorer addons > preview pane > svg (next to the on/off switch, there's a arrow pointing down > color mode)

OneCommander Support

unread,
Nov 22, 2023, 11:48:50 PM11/22/23
to OneCommander
Updated powertoys and now I can change color, but it still makes no difference in what OC gets from the system registered thumbnail handler

Kyle Condon

unread,
Nov 23, 2023, 4:36:52 AM11/23/23
to OneCommander
@Milos Now how about OneThumbHandler?

OneCommander Support

unread,
Nov 23, 2023, 11:37:14 AM11/23/23
to OneCommander
Making a file parser sounds like a nightmare that is destined to have bugs for years. I would consider integrating an open-source library that is already mature and used in a lot of projects if it also supports multiple formats, but another reason why handling any user-generated content internally is always a bad idea is that any corrupted file, or anything out of the ordinary may crash/freeze the whole program. 
I've seen in the past others using svg by integrating the Edge WebView, rendering it on the side and grabbing an image from it, but that is like turning one room of your house into a walk-in freezer just to have some ice-cubes.

Kyle Condon

unread,
Nov 26, 2023, 8:10:47 AM11/26/23
to OneCommander
No, it was a bit of a joke. I know you got a lot on your plate with just this project.
Reply all
Reply to author
Forward
0 new messages