Yeah, I think the conversion is where it gets messed up. It seems like webp images bypass this conversion step. It is a relatively new format though, so it won't work in old browsers.
Disclaimer - I am not fully up to date on the state of the project:
Pict-rs has to balance a couple of concerns. It's primary purpose is de-duplication, so when the same meme gets uploaded 1000 times, it doesn't get stored 1000 times. Another important purpose is the ability to apply effects like blurs, which are used to mask NSFW content. Blurring a gif with a 255 color limit is kind of infeasible, so they get converted to a more suitable format first (is mp4 more suitable though 🤷). Pict-rs was originally designed around static images, and kind of grew in scope with time. There are probably some edge-cases we're hitting.
While setting up pict-rs on my cluster I noticed a pict-rs environment variable to convert all uploaded pictures to the png format. That may also be activated. I guess that makes de-duplication way easier.
I think you might have better luck uploading them in webp format.
example
I uploaded a gif to lemmy, it seems to pass it to pict-rs and convert it.
Yeah, I think the conversion is where it gets messed up. It seems like webp images bypass this conversion step. It is a relatively new format though, so it won't work in old browsers.
Disclaimer - I am not fully up to date on the state of the project:
Pict-rs has to balance a couple of concerns. It's primary purpose is de-duplication, so when the same meme gets uploaded 1000 times, it doesn't get stored 1000 times. Another important purpose is the ability to apply effects like blurs, which are used to mask NSFW content. Blurring a gif with a 255 color limit is kind of infeasible, so they get converted to a more suitable format first (is mp4 more suitable though 🤷). Pict-rs was originally designed around static images, and kind of grew in scope with time. There are probably some edge-cases we're hitting.
Do you see the MP4 playing? I uploaded a plain gif, didn't know it was converted until he posted the screenshot with the error.
I do not. "No video with supported format and MIME type found." On Firefox 102.11.0esr, Gentoo 64 bit.
If I right-click, inspect element, and paste the URL into a new tab, it does work though. 🤔
While setting up pict-rs on my cluster I noticed a pict-rs environment variable to convert all uploaded pictures to the png format. That may also be activated. I guess that makes de-duplication way easier.
Doesn’t work for me on the mlem app unfortunately
Doesn't work on jerboa either
mlem is very barebones at the moment, I actually switch between the website and the app on mobile.
Ok, I can see this one. But so fare I only ever see GIFs in the comments but not in posts