Page 3 of 5

Re: Thumbnails of some filetypes show in Windows Explorer but XYplorer

Posted: 17 Apr 2023 01:33
by Ampere
Thanks Horst!!
That app really solved the Thumbails HEIC issue!! :appl: :appl: :appl: :tup:

Re: Thumbnails of some filetypes show in Windows Explorer but XYplorer

Posted: 17 Apr 2023 11:43
by Horst
There is one point for Don.

Normaly in Windows 10 or 11 its enough to install the "HEIF Image Extensions" from the Microsoft store.
This allows preview and thumbnails of .heic and .heif files in Explorer and my other file managers.

In XY the preview of .heic works, also MDBU and hover.
Thumbnails are only created for .heif files.
The preview or MDBU for .heif says "Cannot decode"

Re: Thumbnails of some filetypes show in Windows Explorer but XYplorer

Posted: 18 Apr 2023 14:28
by admin
In the next beta do this:

Code: Select all

previewcheck; //check the currently focused file
It should shed some light on the mysteries.

Re: Thumbnails of some filetypes show in Windows Explorer but XYplorer

Posted: 18 Apr 2023 15:14
by Display
Gave it a try and here's the results when selecting a .CLIP file using my current ini configuration:

Code: Select all

Preview Check: C:\_DATA\_Sketchbook\page0009.clip

+ n - preview loaded in 10.2 ms
+ p - preview loaded in 217.0 ms
+ p32 - preview loaded in 295.4 ms
+ p64 - preview loaded in 231.8 ms
+ t - preview loaded in 14.9 ms
+ tf32 - preview loaded in 10.4 ms
+ tf64 - preview loaded in 269.8 ms
- te32 - preview failed in 9.0 ms
- tg32 - preview failed in 2.4 ms

--------------------------------------------------------------------------------

Tweak PreviewEarlyFactory = 1

Document Files = .afdesign.afpub.ai.cdr.cgm.rtf.doc.dot.docm.docx.dotx.xls.xlt.xlsm.xlsx.xltx.ppt.pot.pps.pptx.potx.ppsx.wpd.wpf.odt.ods.odp.one.pdf.eps.ps.jtx.xps.oxps.dwg.dwf.dwfx.dxf.easmx.edrwx.eprtx.sldprt.sldasm.slddrw.prt.asm.drw.eml.msg.nws.skp.layout.epub.mobi.3mf.fbx.fs. - except: .

Preview as Thumbnail = .afdesign.afphoto.afpub.c4d.epub.layout.mobi.skp.sldasm.slddrw.sldprt.xar.3mf.fbx.fs.prt.asm.drw.webp.ai.clip. - except: .

Thumbs64Ext = .3ds.max.obj.ai.eps.svg.abr.afdesign.afphoto.afpub.bkd.blend.cbr.cbz.reb.ptg.pss.leo.kra.clip.
And here's the results with a blank/default configuration:

Code: Select all

Preview Check: C:\_DATA\_Sketchbook\page0009.clip

+ n - preview loaded in 12.8 ms
+ p - preview loaded in 16.2 ms
+ p32 - preview loaded in 36.8 ms
+ p64 - preview loaded in 229.6 ms
+ t - preview loaded in 17.2 ms
+ tf32 - preview loaded in 12.6 ms
+ tf64 - preview loaded in 271.7 ms
- te32 - preview failed in 16.7 ms
- tg32 - preview failed in 1.5 ms

--------------------------------------------------------------------------------

Tweak PreviewEarlyFactory = 0

Document Files = .afdesign.afpub.ai.cdr.cgm.rtf.doc.dot.docm.docx.dotx.xls.xlt.xlsm.xlsx.xltx.ppt.pot.pps.pptx.potx.ppsx.wpd.wpf.odt.ods.odp.one.pdf.eps.ps.jtx.xps.oxps.dwg.dwf.dwfx.dxf.easmx.edrwx.eprtx.sldprt.sldasm.slddrw.prt.asm.drw.eml.msg.nws.skp.layout.epub.mobi.3mf.fbx.fs. - except: 

Preview as Thumbnail = .afdesign.afphoto.afpub.c4d.epub.layout.mobi.skp.sldasm.slddrw.sldprt.xar.3mf.fbx.fs.prt.asm.drw.webp. - except: 

Thumbs64Ext = afdesign.afphoto.afpub.c4d.epub.layout.mobi.skp.sldasm.slddrw.sldprt.xar.3mf.fbx.fs.ai.eps.svg

Re: Thumbnails of some filetypes show in Windows Explorer but XYplorer

Posted: 18 Apr 2023 15:20
by admin
p32 and tf32 seem to work well and fast. Which has the better quality? Compare the results visually:

Code: Select all

preview "C:\_DATA\_Sketchbook\page0009.clip", p32;  //PreviewHandler (32-bit)

Code: Select all

preview "C:\_DATA\_Sketchbook\page0009.clip", tf32; //ThumbnailProvider IShellItemImageFactory (32-bit)

Re: Thumbnails of some filetypes show in Windows Explorer but XYplorer

Posted: 18 Apr 2023 15:37
by Display
They both appear to be the same high quality (1000x1000 px)
ThumbnailProvider IShellItemImageFactory (32-bit) seems to be 100% size.
PreviewHandler (32-bit) appears to be 99% size with a canvas outline border and fills the background with white instead of XY's theme.

Here's a downsampled comparison of what's happening
230418_PureRef_42a47.png
230418_PureRef_42a47.png (209.22 KiB) Viewed 2593 times
So I guess tf32 is better!

Re: Thumbnails of some filetypes show in Windows Explorer but XYplorer

Posted: 18 Apr 2023 16:12
by Horst
Some changes in the new beta :)
.heic files are now ok with Preview, Hover and MDBU

.heif files only the Hover works.
Preview says Cannot decode but sometimes after a long time it displays a preview.
MDBU does nothing

previewcheck; //check the currently focused file
Says the following for a .heif file

Code: Select all

Preview Check: C:\Temp\Test2\Muster\heif  ( picosmos ).heif

+ n - preview loaded in 1,25 secs
+ p - preview loaded in 94,4 ms
+ p32 - preview loaded in 1,1 ms
+ p64 - preview loaded in 83,7 ms
- t - preview failed in 1,28 secs
+ tf32 - preview loaded in 1,42 secs
+ tf64 - preview loaded in 8,63 secs
- te32 - preview failed in 1,30 secs
- tg32 - preview failed in 585,7 ms

--------------------------------------------------------------------------------

Tweak PreviewEarlyFactory = 3

Document Files = .afdesign.afpub.ai.cdr.cgm.rtf.doc.dot.docm.docx.dotx.xls.xlt.xlsm.xlsx.xltx.ppt.pot.pps.pptx.potx.ppsx.wpd.wpf.odt.ods.odp.one.pdf.eps.ps.jtx.xps.oxps.dwg.dwf.dwfx.dxf.easmx.edrwx.eprtx.sldprt.sldasm.slddrw.prt.asm.drw.eml.msg.nws.skp.layout.epub.mobi.3mf.fbx.fs. - except: .

Preview as Thumbnail = .afdesign.afphoto.afpub.c4d.epub.layout.mobi.skp.sldasm.slddrw.sldprt.xar.3mf.fbx.fs.prt.asm.drw.webp. - except: .

Thumbs64Ext = afphoto.afdesign.afpub.sldasm.slddrw.sldprt.skp.layout



Re: Thumbnails of some filetypes show in Windows Explorer but XYplorer

Posted: 18 Apr 2023 18:05
by admin
Either add heif to Document Files, then p32 will do the job.
Or set PreviewEarlyFactory to anything but 3, then tf32 will do it.

Re: Thumbnails of some filetypes show in Windows Explorer but XYplorer

Posted: 18 Apr 2023 18:08
by admin
Display wrote: 18 Apr 2023 15:37 They both appear to be the same high quality (1000x1000 px)
ThumbnailProvider IShellItemImageFactory (32-bit) seems to be 100% size.
PreviewHandler (32-bit) appears to be 99% size with a canvas outline border and fills the background with white instead of XY's theme.

Here's a downsampled comparison of what's happening
230418_PureRef_42a47.png

So I guess tf32 is better!
Are you sure that CLIP files get no thumbnails with a fresh instance?

Re: Thumbnails of some filetypes show in Windows Explorer but XYplorer

Posted: 18 Apr 2023 18:32
by Horst
admin wrote: 18 Apr 2023 18:05 Either add heif to Document Files, then p32 will do the job.
Or set PreviewEarlyFactory to anything but 3, then tf32 will do it.
I now set PreviewEarlyFactory=1
.heic and .heif hover, preview and MDBU work.

There is one problem left, no thumbnails for .heic files.
.heif thumbnails are fine.

I only have the MS HEIF Image Extensions installed.
Previously using the 3rd party CopyTransHEICforWindows tool all was ok in XY.
But I would like to stay with the HEIF Image Extensions as Explorer and other tools
are fine, making preview and thumbnails for both extensions.

Re: Thumbnails of some filetypes show in Windows Explorer but XYplorer

Posted: 18 Apr 2023 19:13
by admin
Horst wrote: 18 Apr 2023 18:32 There is one problem left, no thumbnails for .heic files.
.heif thumbnails are fine.
Assuming that you configured all settings for heic and heif identically, this is weird. Both formats get identical results from previewcheck;?

Re: Thumbnails of some filetypes show in Windows Explorer but XYplorer

Posted: 18 Apr 2023 19:55
by jupe
You need to run this once for heic thumbnails, extlist("thumbs64", "heic", "a"); it isn't required for heif

Re: Thumbnails of some filetypes show in Windows Explorer but XYplorer

Posted: 18 Apr 2023 19:57
by Horst
Here the .heic

Code: Select all

Preview Check: C:\Temp\Test2\Muster\Example02.heic

+ n - preview loaded in 60,3 ms
+ p - preview loaded in 101,1 ms
+ p32 - preview loaded in 2,0 ms
+ p64 - preview loaded in 82,9 ms
+ t - preview loaded in 64,0 ms
+ tf32 - preview loaded in 61,8 ms
+ tf64 - preview loaded in 375,4 ms
+ te32 - preview loaded in 546,3 ms
- tg32 - preview failed in 33,7 ms

--------------------------------------------------------------------------------

Tweak PreviewEarlyFactory = 1

Document Files = .afdesign.afpub.ai.cdr.cgm.rtf.doc.dot.docm.docx.dotx.xls.xlt.xlsm.xlsx.xltx.ppt.pot.pps.pptx.potx.ppsx.wpd.wpf.odt.ods.odp.one.pdf.eps.ps.jtx.xps.oxps.dwg.dwf.dwfx.dxf.easmx.edrwx.eprtx.sldprt.sldasm.slddrw.prt.asm.drw.eml.msg.nws.skp.layout.epub.mobi.3mf.fbx.fs. - except: .

Preview as Thumbnail = .afdesign.afphoto.afpub.c4d.epub.layout.mobi.skp.sldasm.slddrw.sldprt.xar.3mf.fbx.fs.prt.asm.drw.webp. - except: .

Thumbs64Ext = afphoto.afdesign.afpub.sldasm.slddrw.sldprt.skp.layout
And here the .heif which displays the preview for some time, then displays Canot decode

Code: Select all

Preview Check: C:\Temp\Test2\Muster\heif  ( picosmos ).heif

+ n - preview loaded in 1,46 secs
+ p - preview loaded in 79,2 ms
+ p32 - preview loaded in 1,1 ms
+ p64 - preview loaded in 85,1 ms
+ t - preview loaded in 1,47 secs
+ tf32 - preview loaded in 1,41 secs
+ tf64 - preview loaded in 8,83 secs
- te32 - preview failed in 1,24 secs
- tg32 - preview failed in 593,7 ms

--------------------------------------------------------------------------------

Tweak PreviewEarlyFactory = 1

Document Files = .afdesign.afpub.ai.cdr.cgm.rtf.doc.dot.docm.docx.dotx.xls.xlt.xlsm.xlsx.xltx.ppt.pot.pps.pptx.potx.ppsx.wpd.wpf.odt.ods.odp.one.pdf.eps.ps.jtx.xps.oxps.dwg.dwf.dwfx.dxf.easmx.edrwx.eprtx.sldprt.sldasm.slddrw.prt.asm.drw.eml.msg.nws.skp.layout.epub.mobi.3mf.fbx.fs. - except: .

Preview as Thumbnail = .afdesign.afphoto.afpub.c4d.epub.layout.mobi.skp.sldasm.slddrw.sldprt.xar.3mf.fbx.fs.prt.asm.drw.webp. - except: .

Thumbs64Ext = afphoto.afdesign.afpub.sldasm.slddrw.sldprt.skp.layout

Re: Thumbnails of some filetypes show in Windows Explorer but XYplorer

Posted: 18 Apr 2023 20:01
by Horst
jupe wrote: 18 Apr 2023 19:55 You need to run this once for heic thumbnails, extlist("thumbs64", "heic", "a"); it isn't required for heif
This doesn't change anything, still no thumbnails for .heic

Re: Thumbnails of some filetypes show in Windows Explorer but XYplorer

Posted: 18 Apr 2023 20:03
by jupe
Works for me, using the same setup.

edit: Actually, you didn't mention installing the HEVC decoder from the MS Store in addition to the HEIF image extensions, that is also a requirement for heic, and could be why it works for me.