Vetpetmon-Labs / SNAZpedia-Issue-Tracker

Issue Tracker for SNAZpedia, also serves as an addon repository for the website
https://wiki.vetpetmon.com/
0 stars 0 forks source link

Uploaded animated GIFs do NOT animate #1

Open Vetpetmon opened 2 years ago

Vetpetmon commented 2 years ago

Link 1: https://vetpetmon.com/snazpedia/index.php/Umbral_Coalition_(Game) Link 2: https://vetpetmon.com/snazpedia/index.php/File:Heated.gif

Description: GIFs uploaded do not animate when they are on a page (See Link 1). However, when viewed directly, they are animated (See Link 2).

Steps to reproduce: Upload an animated GIF file to the server, then insert it onto a wiki page.

What should happen: Animated GIFs should play.

What actually happens: Animated GIFs do not play.

====================================

Comments: Possibly something in the backend/serverside that's causing this. I am looking into it.

UPDATE: Some devices and browsers play GIFs just fine, but it's at random, it seems. And then they stop working after some time as others start playing. I am looking into it.

For now, you can still click on the GIF to see it animate with 100% certainty.

Vetpetmon commented 2 years ago

image

Uhhhh.... Gonna want a server upgrade before this is fixed

Vetpetmon commented 2 years ago

So, server upgrade request was successful. I am now investigating the issue as we speak.

Apparently, the GIF files get this error: Note: Due to technical limitations, thumbnails of high resolution GIF images such as this one will not be animated.

I will be adjusting $wgMaxAnimatedGifArea as we speak. If this is abused by users, I may lock image uploads to be only usable by those who have linked accounts.

Vetpetmon commented 2 years ago

For the source media page: Just add one more zero it works every time. 👌

The issue now actually appears to be a thumbnail issue; thumbnails are generated by the server, and thus, do not animate, because the server's image handler only makes static images, so... image Here's how you don't create a thumbnail of the image.

Thank literally nobody on the search engine results for telling me this. Anyways, use the Basic image type to display animated GIFs

Vetpetmon commented 2 years ago

Most mobile browsers display most GIFs just fine if they're under the size limits.

Vetpetmon commented 2 years ago

Weird. Reviving this for a hot second, sometimes GIFs animate, then don't.

Which is it, server? Indecisive af.