ElkArte Community

Project Support => General ElkArte discussions => Topic started by: DukeOfAwesome on February 14, 2021, 04:01:33 am

Title: Animated gif for avatar
Post by: DukeOfAwesome on February 14, 2021, 04:01:33 am
Hi,

Sorry if this is silly question, but I can upload an animated gif as an avatar, but is doesn't animated when it's displayed on the site. Is there a trick to getting animated gifs to work?

Thanks

Duke
Title: Re: Animated gif for avatar
Post by: Spuds on February 14, 2021, 08:35:04 am
I don't recall all the admin panel settings, but make sure the avatar is not larger than the allowed size.  If its bigger it will go through resizing and loose its animation.  I'm not sure if the let css resize it avoids that, or if that works with gif
Title: Re: Animated gif for avatar
Post by: vbgamer45 on February 14, 2021, 12:44:53 pm
Animated gifs are tricky resizing. I use a very old class attached for resizing them. I haven't found anything better that is pure PHP wise without using imagemagick.
Title: Re: Animated gif for avatar
Post by: Antechinus on February 14, 2021, 03:11:07 pm
Animated gif's resize perfectly by CSS.
Title: Re: Animated gif for avatar
Post by: Bloc on February 14, 2021, 05:05:12 pm
Quote from: Antechinus – Animated gif's resize perfectly by CSS.

Indeed, you can do that by simply using the inspector in the browser and resize for example vbgamers own avatar on here - if you need to test it. :D

But maybe the gif are re-coded as png? That would explain the loss of animation.
Title: Re: Animated gif for avatar
Post by: DukeOfAwesome on February 15, 2021, 12:34:30 am
Thanks everyone