Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable animated user icons. #694

Open
zorbathut opened this issue Sep 2, 2023 · 2 comments
Open

Disable animated user icons. #694

zorbathut opened this issue Sep 2, 2023 · 2 comments
Labels
enhancement New feature or request P3 desired simple Good for newcomers

Comments

@zorbathut
Copy link
Contributor

If you want to be fancy, disable them unless you're mousing over the username, I suppose.

I think this is all doable in CSS.

@zorbathut zorbathut added enhancement New feature or request simple Good for newcomers P3 desired labels Sep 2, 2023
@wmill
Copy link
Contributor

wmill commented Nov 2, 2023

It's not a simple CSS fix, there's no control of animated images. Historic reasons.

Ways to fix:

  • take out the gifwebp call on the backend, it's there specifically to preserve gif animation
  • if you want to do the mouseover animation I think you can load webp images in a video element so you can control playback
  • Gifffer controls playback of gifs by loading them into a canvas element, which doesn't support animation. But that's probably more complexity than is needed.

@zorbathut
Copy link
Contributor Author

Hrm.

I'm tempted to say "let's just remove gifwebp, then", but I sorta don't want to do that because then we need to reprocess user icons to remove animations and then we also have no way of restoring animations.

Actually, wait, here's an idea:

  • When uploading a user icon, generate an animated guid_noanim.webp and a non-animated guid_anim.webp version
  • Choose which one is being played based on mouseover
  • Go through and reprocess all user icons without a suffix

That wouldn't be hard, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P3 desired simple Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants