Displaying very large GIF

AI-generated summary

Ivan_Rapekas reported an issue displaying a large 4.11MB GIF on Discourse, which initially appeared but later vanished, showing a blank page with an error. He noted the default image size limit was 4096kB and increased it to 24096kB, yet the GIF still disappeared after rebaking. jomaxro tested by temporarily raising the limit to 5120kB and successfully uploaded the GIF without it collapsing into a link, suggesting the system caches the “too large” status and doesn’t re-evaluate after changing settings. Ivan_Rapekas thanked jomaxro for the investigation, confirming the behavior is likely by design — GIFs uploaded under old limits remain flagged even after increasing the limit. The issue appears not to be a bug but a caching behavior of the image size validation.

Hi, I tried to post two URLs in a new topic on my environment. First URL is a GIF 4,11MB size. The second is an URL of the website containing some gifs (now I post URLs as a code):

https://cdn.dribbble.com/users/418188/screenshots/3997043/watering_tracker_app_ui_tubik.gif

https://dribbble.com/shots/3997043-Watering-Tracker-App

When the composer is opened, everything is ok. After publishing everything is ok too. But after a couple of minutes I got a blank page with a message:

%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5

Well, I’ve checked settings and realized that the limit for pictures is 4096kB. Then I increased it upto 24096kB and rebaked. During rebake the picture is shown only for a moment, then disappears, see a video attached.

Where I am wrong? How to show this picture? Why the second URL disappears?

Tested at (temporary available):

https://try.discourse.org/t/trying-attach-gif-4-11-mbytes-with-4096kb-default-setting/1346

Best guess is that we cache the fact that the “gif is too large” somewhere, so if you change the setting after you upload it will continue to be treated as if it’s too large. I temporarily increased the max image size kb on try to 5120, uploaded the gif, and it has not been collapsed into a link: https://try.discourse.org/t/trying-attach-gif-4-11-mbytes-with-4096kb-default-setting/1346/2

From what I can tell, everything is working as expected here.

Thank you for the investigation @jomaxro!