ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Thumbnail for MP4 files on network share
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

troberts

New Zealand
6 Posts

Posted - Jun 16 2025 :  04:16:30  Show Profile  Reply
Hi,

I am using a TImageEnMView component to display thumbnails of image and movie files. I am loading the files into it using the AppendImage method.

Thumbnails of jpeg files load correctly regardless of whether the files are located on a local drive or on a network share. However thumbnails of mp4 files only load if the files are on a local drive. If they are on a network share then the Windows placeholder icon is displayed instead.

I have tried using EnableLoadExplorerThumbnails and EnableLoadEXIFThumbnails without success. I have StoreType set to ietFastThumb.

Any ideas?

xequte

39047 Posts

Posted - Jun 16 2025 :  14:57:25  Show Profile  Reply
Hi

TImageEnMView does not attempt to create thumbnails for formats like MP4 (for various reasons: format support, performance, finding a suitable frame, etc), it always uses Windows Explorer to generate it. However Windows Explorer itself may avoid creating thumbnails for network based files (for performance reasons).

So, it seems like you can disable that on the system using the registry:

https://superuser.com/questions/1524519/thumbnails-not-showing-on-network-drive-but-on-local-drives-win-10-pro
https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-admx-thumbnails

I have not tested this.

Otherwise you would need to load and generate your own thumbnail. As this would be slow, you should probably store/cache it.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

troberts

New Zealand
6 Posts

Posted - Jun 17 2025 :  04:28:57  Show Profile  Reply
Thanks. I tried making those registry settings but they didn't have any effect. I was calling SetModernStyling. I found that if I don't do that the thumbnails display correctly.
Go to Top of Page

xequte

39047 Posts

Posted - Jun 17 2025 :  04:45:36  Show Profile  Reply
Hmmm, that is unexpected. SetModernStyling sets the following:

  Style                        := iemsFlat;
  Background                   := clWindow;
  ThumbnailsBackground         := clWindow;
  ThumbnailsBackgroundSelected := $00FCEADA;
  ThumbnailsBackgroundHover    := $00FFF3E5;
  SelectionColor               := $00CEA27D;
  TextMargin                   := 4;
  HorizBorder                  := 8;
  VertBorder                   := 8;
  UpperGap                     := 0; (or 4 if bSoftShadow = False)
  BottomGap                    := 0; (or 4 if bSoftShadow = False)
  LeftGap                      := 0; (or 4 if bSoftShadow = False)
  RightGap                     := -1; 
  TextBackgroundStyle          := bsClear;
  SoftShadow.Radius            := 2;
  SoftShadow.OffsetX           := 1;
  SoftShadow.OffsetY           := 1;
  SoftShadow.Intensity         := 50;
  SoftShadow.Enabled           := bSoftShadow;

http://www.imageen.com/help/TImageEnMView.SetModernStyling.html

The only thing I can think of there is the size of the thumbnail might be affecting it. You might try eliminating the calls to see which one is the cause.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

troberts

New Zealand
6 Posts

Posted - Jun 17 2025 :  04:53:48  Show Profile  Reply
Sorry, one other thing. Windows Explorer shows thumbnails of movie files with a filmstrip edging. Is it possible to do that?
Go to Top of Page

xequte

39047 Posts

Posted - Jun 17 2025 :  15:48:37  Show Profile  Reply
Hi

Unfortunately that effect is applied by Explorer after retrieving the thumbnail of the video, and I don't know of a method to apply it via API.

You can draw it yourself as the thumbnail is drawn:

http://www.imageen.com/help/TImageEnMView.OnImageOut.html

I would use GDI+ to draw to the OutBitmap.Canvas. Alternatively you could use a mask, as in the demo:

\Demos\ImageEditing\PictureFrames\Frames.dpr

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

xequte

39047 Posts

Posted - Jun 21 2025 :  20:29:44  Show Profile  Reply
If you email me for the latest beta, it has a feature to add a filmstrip border.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: