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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 TImageEnMView - Animated GIF thumbnails?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
cpstevenc Posted - Nov 22 2022 : 16:16:13
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.



6   L A T E S T    R E P L I E S    (Newest First)
cpstevenc Posted - Nov 23 2022 : 15:43:28




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.
cpstevenc Posted - Nov 23 2022 : 15:26:47
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.
xequte Posted - Nov 22 2022 : 22:58:02
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
cpstevenc Posted - Nov 22 2022 : 19:29:31
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.




xequte Posted - Nov 22 2022 : 18:58:44
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
cpstevenc Posted - Nov 22 2022 : 16:50:35
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.