Meta converteert gifs naar jpg

AI-generated summary

Users reported that Meta converts uploaded or linked GIFs to JPGs, even though they are not PNGs. sam initially called it a feature tied to the png to jpg quality setting, suggesting setting it to 100 to disable conversion — but bartv and others noted this doesn’t apply to GIFs. sam acknowledged the setting name is misleading and confirmed animated GIFs should be exempt. orenwolf and smrtey confirmed animated GIFs are still being converted despite setting adjustments, with orenwolf suggesting a code fix is needed. jamie.wilson shared that a fix was merged in a recent pull request (#11031), including a test to prevent modification of animated images. The fix requires updating Discourse instances to take effect. The issue was acknowledged as a bug, not intended behavior, and is now resolved in code.

When I post a gif here on meta it gets converted to jpg. This happens both when I upload it directly, or simply post a link to one:

5 likes

This is certainly a feature.

See the png to jpg quality site setting. You can disable by setting png to jpg quality to 100

1 like

Hmm but this is a gif, not png?

We probably need to fix the site setting name here, cc @nbianca … also we should only apply this to non animated gifs.

7 likes

Confirmed this is removing animated gifs as they are posted.

2 likes

I changed setting png to jpg quality to 100 and it’s still turning animated gifs into jpgs

Same. I tried changing recompress original jpg quality and image preview jpg quality to 100 to disable them as well without success. Fixing this will likely require a code change methinks (which I’m sure they’re working on now).

https://github.com/discourse/discourse/pull/11031

This was merged in about an hour ago (complete with a typo in the commit message).

animated

The merge includes a test to ensure we don’t attempt to modify animated images in the future. It will require an update to your Discourse instances to pick up the changes.

10 likes