microsoft/PowerToys

[Preview Pane] Add possibility to set file size threshold to avoid showing big files

Open

#15,508 opened on Jan 13, 2022

View on GitHub
 (9 comments) (3 reactions) (0 assignees)C# (7,978 forks)batch import
Help WantedIdea-EnhancementProduct-File Explorer

Repository metrics

Stars
 (133,154 stars)
PR merge metrics
 (Avg merge 14d 20h) (117 merged PRs in 30d)

Description

Description of the new feature / enhancement

Add a field where the user can specify the maximum file size he would like to show to the Preview Pane, to avoid showing big files, which would take a lot of time/RAM to load, and in some cases would crash the File Explorer.

Adding a settable parameter (e.g. max_size) would be enough to solve this problem I suppose. As an example, max_size = 1 MB would only show to the Preview Pane files of size up to 1 MB.

Scenario when this would be used?

When the file size too big for the available RAM size.

When the file size (e.g. an svg image in my case) is too big: the Preview Pane takes forever, consumes a lot of RAM to load it and then the File Explorer crashes.

Supporting information

No response

Contributor guide