Powertoys: Animated GIF thumbnails/icons in windows explorer.

Created on 31 Jul 2020  路  6Comments  路  Source: microsoft/PowerToys

With a toggleable option, GIFs that normally show up as an image preview in explorer would be animated.

A nice touch would be to specify the quality of the preview, the framerate, and an option to only animate it if it is selected in windows explorer.

This would not be in the preview area, this would be the actual icon or thumbnail of the icon that is animated.

Idea-New PowerToy Product-File Explorer

All 6 comments

@chrdavis as you just did this for SVG, i'm betting it was rendered into an icon so doing this wouldn't be possible, correct?

Unfortunately, Windows Explorer does not expose such functionality for thumbnails. We can only provide a static bitmap.

Don't use thumbnails, then? If it's possible to implement a document preview handler with code syntax highlighting and a bunch of custom tabs - which I've seen before - surely this is possible.

Well I guess if you want any sort of functionality then copy this text that I found here: https://www.w7forums.com/threads/animate-all-gif-files-in-windows-explorer.15806/


<html><head><title>Animator</title></head>
<body><script type="text/vbs">
set fso=CreateObject("Scripting.FileSystemObject")
set fldr=fso.GetFolder(".")
for each file in fldr.files
if lcase(right(file.name,4))=".gif" then
document.write "<img src=""" & file.name & """>"
end if
next
</script></body></html>

Then name that file "animator.hta" and place it in your gif folder. Run it and you will get a viewer that displays all gifs in that folder. Does not look nice but it works

A windows explorer preview handler for animated GIFs would be possible. The preview handler hosts a HWND that could be the WebView control with the GIF loaded.

A windows explorer preview handler for animated GIFs would be possible. The preview handler hosts a HWND that could be the WebView control with the GIF loaded.

Would this implementation cause lag in windows explorer or high cpu usage to the desktop window manager and/or create lots of cache files (multiple png files)?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

enricogior picture enricogior  路  3Comments

verglor picture verglor  路  3Comments

saahmedm picture saahmedm  路  3Comments

21cpDev picture 21cpDev  路  3Comments

aminya picture aminya  路  3Comments