Remote animierte PNG verlieren ihre Animation

APNG animations don’t play in Discourse when hotlinked:

They also lose their animation after they are downloaded to the server if download remote images to local is true.

2 „Gefällt mir“

Discourse doesn’t support APNG. The only animated image formats we support are GIF, WEBP and AVIF.

If someone wants to work on this you will need to patch both core, as we skip many image optimizations for animated images, both in front-end and in the backend, and write a binary APNG detector in the fastimage library.

Moving to feature request and adding pr-welcome.

5 „Gefällt mir“

Just found out that Steam is using APNG for their animated stickers, another indicator that we should add support for it.

3 „Gefällt mir“

Can you share some APNGs you have so I can test this feature?

1 „Gefällt mir“

I worked on initial support for FastImage in my PR:

When/If this gets merged Discourse will automatically support animated PNGs.

2 „Gefällt mir“