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
 TImageEnMView - Animated GIF thumbnails?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

cpstevenc

USA
113 Posts

Posted - Nov 22 2022 :  16:16:13  Show Profile  Reply
Does TImageEnMView support animated GIF thumbnails yet? Or just still single frame?

Loads my animated gifs just fine, but only 1 single frame each.

I can get around this making A CEF / Chromium box to load my images in and this "works" but lots of code/work to do so.... Easy to show them... pain in the butt to now interface back and forth between the web page and my app for simple stuff.

Rather use TImageEnMView if possible.

If not, then I'll use my CEF idea for now.



cpstevenc

USA
113 Posts

Posted - Nov 22 2022 :  16:50:35  Show Profile  Reply
I just changed my design up.

Less resource hogging than to have animated GIF's all playing if was many of them.

So changed up my UI to show the emotes all 3 sizes to the right an their animated for if they have them.

Go to Top of Page

xequte

38127 Posts

Posted - Nov 22 2022 :  18:58:44  Show Profile  Reply
Hi

Animation is not supported for TImageEnMView thumbnails. Performance would be biggest issue there, e.g. a screen of 50 animated GIFs would need a lot of disk i/o and or memory (each one needing their own timing and to be scaled in real-time).

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

cpstevenc

USA
113 Posts

Posted - Nov 22 2022 :  19:29:31  Show Profile  Reply
I think scaling wouldn't be a big issue?

each list i tell the thumb size to be the exact size of the incoming images.

I have all 3 sizes already supplied.

I set in each TImageEnMView those sizes.

In this case not every image is animated. Just come in willy nilly.

And really only need to start animation on the ones visible at the time they are viewable by the user?

For now what I have works... just only show the image you have selected, if its animated, showed it animated off the far right side in each size flavor.

Chromium handles it really well showing A bunch of animated ones in A test but Chrome a bit more "Advanced" in the rendering engine department for this kind of situation

I think I can survive for now as is.




Go to Top of Page

xequte

38127 Posts

Posted - Nov 22 2022 :  22:58:02  Show Profile  Reply
Hi

Scaling in itself is not a big issue, nor is loading the image (from disk or memory). The issue is that you would be doing it for every thumbnail on screen ten or so times a second. When testing your demo I had 360 images on screen, so you can imagine the CPU load when performing 3600 loading and drawing operations a second.

It would be a cool feature, but it would necessitate significant work on optimization and caching alone.

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

cpstevenc

USA
113 Posts

Posted - Nov 23 2022 :  15:26:47  Show Profile  Reply
BTW I was wrong about GIF.

They are Animated PNG.

Which doesn't really change anything.

I think the animation would only be what is visible?

List of 309 .. but only say 15-20-30 on the screen.

And not ALL are animated. Not even ALOT are animated.

Anyways with my UI now, I think I have what works.

I only show the animated PNG off to the side once its selected.
Go to Top of Page

cpstevenc

USA
113 Posts

Posted - Nov 23 2022 :  15:43:28  Show Profile  Reply




My UI now shows animated PNG's with red border around them.

Simple visual to know which ones are and are not animated.

So far I think this will work to get me by.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: