PowerToys: SVG thumbnail regression

Microsoft PowerToys version

0.60.1

Running as admin

  • Yes

Area(s) with issue?

SVG Thumbnail

Steps to reproduce

PowerToys v0.57.2 generated the SVG thumbnails reasonably fast. However, since I upgraded to v0.60.1 the SVG thumbnail generation is terribly slow. Opening a folder with tens of SVG files takes almost a minute to have all the thumbnails available. The following screenshot shows the behavior in v0.60.1:

image

On top of that, most thumbnails show a bit of text that appears somewhere in the SVG drawing. It should instead show the whole SVG drawing, like what v0.57.2 did:

image

✔️ Expected Behavior

Show SVG thumbnails fast. Show the whole SVG drawing in the thumbnail.

❌ Actual Behavior

Generate SVG thumbnails slow. Show part of the SVG drawing in the thumbnail.

Other Software

No response

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 7
  • Comments: 26

Most upvoted comments

@kristofmulier I disabled the powertoys svg thumb and installed the “SVG Viewer Extension for Windows Explorer”, it generates the thumbs very quickly, I think that for now is the only way out, until powertoys has a version with the correction.

https://github.com/tibold/svg-explorer-extension

My system is also pretty fast:

  • Processor: 12th Gen Intel® Core™ i7-12700H 2.30 GHz
  • Installed RAM: 64,0 GB
  • System type: 64-bit operating system, x64-based processor
  • OS Edition: Windows 11 Home Insider Preview
  • Version: 22H2
  • Installed on: 11/01/2023
  • OS build: 25272.1000
  • Experience: Windows Feature Experience Pack 1000.25272.1000.0

I use now the latest PowerToys v0.66.0

I notice everyone experiences this issue of slow rendering svg-thumbnails - no matter how powerful the PC. Is anyone working on a fix? I love PowerToys, but this bug is really a dealbreaker.

Just to add to the hypothesis put forth by @KaiHuaDou, I saw (via the “Details” tab on Task Manager to see PIDs) a separate new “PowerToys.SvgThumbnailProvider.exe” process for each individual thumbnail.

For anyone having the same problem, just disable previewing SVG files in PowerToys and use SvgShellExtensions instead, it’s fast and it’s from the same developer who made Resource Hacker

Hi @nwazuo , Sorry to say, but PowerToys is not going to fix this. This issue is already present for several years. I think they don’t care.

I’d like to add that during the super-slow rendering, there is a single “COM surrogate” process which appears to be using as much CPU time as is possible for a single-threaded process.

I observed this issue while attempting to render thumbnails for all of the iconoir SVG icons: https://github.com/iconoir-icons/iconoir/tree/main/icons

My PC was running really hot and when I looked at task manager, I saw a process Powertoys.SvgThumbnailPreview (or something like this) and it was guzzling up my battery. I had to kill that process, and now seeing this issue clarifies it. I’m turning off the SVG preview in the mean time until this is fixed.

Will explore other alternatives pointed out here when I need it. (I don’t really need SVG previews as much right now).

I wanted to use PowerToys to see svg thumbnails and avoid using 3rd party programs but no success. So I’ll continue using 3rd party things until they fix the issue.

I’m using below almost for 4 years and never had any issue. Good performing little extension. Executables downloadable at the release section of the link below.

PS: Just wanted to help others until PowerToys feature is fixed. I’m neither advertiser nor producer of this extension

https://github.com/tibold/svg-explorer-extension/releases

I’m having another problem related to this. png and bmp thumbnail generation also grinds to a halt to the point of basically not working. I’m on the latest as of now, 0.76.0 and it’s downright unusable.

As soon as I’ve opened a directory containing SVG’s I basically don’t get any thumbnails for images at all anymore until I reboot. Even disabling all of the explorer extensions and rebooting does not fix this. An uninstall of powertoys does, even without a reboot.

I’m on an i9 12900KS with 32GB’s of RAM and all of said images are stored on a samsung 980 pro. Hardware wise I basically can’t give powertoys a more favourable scenario and it’s still unusable. SVG thumbnails being slow is “fine” eventhough it used to work before, but basically bricking the entire thumbnail system in file explorer is not fine. There should be a way of preventing that because right now I literally can’t have powertoys installed AND use my computer as normal

Windows 11 22H2 powertoys v0.75.1

this issue still remain, slow, 1 svg takes 2-3 second to load

image

Just to add to the hypothesis put forth by @KaiHuaDou, I saw (via the “Details” tab on Task Manager to see PIDs) a separate new “PowerToys.SvgThumbnailProvider.exe” process for each individual thumbnail.

Thank you! This means that PowerToys uses multiple render processes instead of a single one.

Here’s one hard data point: I’m seeing it take 3-4 seconds to render each trivial SVG (simple icons). This is with PowerToys 0.66.0 on Windows 11, a high-performance CPU, with many GB of free memory, and no other significant simultaneous workloads.

I think this problem may be caused by the conflict between Windows and PowerToys thumbnail policy.

If you bind the rendering thread to the thumbnail handler, Windows will start a rendering process for each thumbnail.

I think the correct approach should be: only one thread is responsible for rendering, and a small and fast program is registered as a thumbnail processing program. This program does not perform calculations, but is only responsible for transferring data. This way it will only start one renderer thread, not multiple ones, no matter how many files there are.

If PowerToys is using the browser engine for rendering, then previewing 100 SVGs will bring about as much performance pressure as opening 100 Edge tabs.

After five months, I still experience this problem. Right now, I have:

  • PowerToys v0.65.0
  • Windows 11 Home Insider Preview Evaluation copy. Build 25267.rs_prerelease.221209-1557

PowerToys runs in admin mode:

image

My current PowerToys settings:

image

What can I do to make the rendering of the svg-files faster?

PS: It’s slow, even when the SVG files are really simple.