this post was submitted on 10 Jun 2023
72 points (97.4% liked)

Memes

45578 readers
1451 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 13 points 1 year ago (9 children)

I think you might have better luck uploading them in webp format.

example

[–] [email protected] 7 points 1 year ago (4 children)

I uploaded a gif to lemmy, it seems to pass it to pict-rs and convert it.

[–] [email protected] 4 points 1 year ago* (last edited 1 year ago) (3 children)

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.

[–] [email protected] 1 points 1 year ago

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.

load more comments (2 replies)
load more comments (2 replies)
load more comments (6 replies)