PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Animated GIF thumbnails/icons in windows explorer.

Open User198263321 opened this issue 5 years ago • 15 comments

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.

User198263321 avatar Jul 31 '20 18:07 User198263321

@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?

crutkas avatar Jul 31 '20 20:07 crutkas

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

chrdavis avatar Jul 31 '20 20:07 chrdavis

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.

Unknow0059 avatar Oct 31 '20 04:10 Unknow0059

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

User198263321 avatar Nov 01 '20 19:11 User198263321

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.

chrdavis avatar Nov 04 '20 17:11 chrdavis

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)?

User198263321 avatar Nov 05 '20 23:11 User198263321

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)?

Maybe it's an option to have a setting to only play the gif when its selected.

luximus-hunter avatar Mar 08 '21 16:03 luximus-hunter

Hopefully its optional in case if users have powerful enough pcs to handle it

User198263321 avatar Mar 10 '21 22:03 User198263321

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)?

Maybe it's an option to have a setting to only play the gif when its selected.

I think on a hover would be better

Netail avatar Nov 13 '21 19:11 Netail

Any news on this?

Radivarig avatar Aug 10 '22 14:08 Radivarig

would love to have this

JimMcBubbles avatar Oct 21 '22 01:10 JimMcBubbles

And might I extend this request to also include animated png files or "apng" files. Putting animations on the icon I think could cause trouble for anyone with a large amount of gif files in a folder. Even if wanting to animate only on hover or selection, I'm pretty sure you'll have to battle explorer caching. Imagine, if you will, when you first open a folder with a ton of pictures in it set to "large" thumbnails. It's going to process each preview one by one and even once cached it will have to load several pages of animated icons to keep up with scrolling. At the moment, even just static image preview icons don't really keep up all the time. But I would love to at the very least have explorer preview pane show animated gifs and pngs and all the other "animated" picture formats like the animated photos from apple's heif or heic formats as well.

Admin-A-LLC avatar Jul 04 '23 13:07 Admin-A-LLC

I volunteer to test it.

shobo20 avatar May 03 '24 14:05 shobo20

Desperate for this feature to be added!

Xsphyre avatar Oct 08 '24 22:10 Xsphyre

Lets fng go, this must be a windows feature alrdy

meowxo444 avatar May 06 '25 19:05 meowxo444