this post was submitted on 08 Sep 2025
65 points (94.5% liked)

Ask Lemmy

34549 readers
1437 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.


6) No US Politics.
Please don't post about current US Politics. If you need to do this, try !politicaldiscussion@lemmy.world or !askusa@discuss.online


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 2 years ago
MODERATORS
 

Why is it that I can post the attached mp4 but not the source as a gif?

To make the mp4 I encoded the gif in handbrake, which actually made increased the file size but reduced the dimensions.

Source gif:  728*408, 785.5 KiB
Encoded mp4: 640*360, 836.7 KiB
you are viewing a single comment's thread
view the rest of the comments
[–] SnotFlickerman@lemmy.blahaj.zone 2 points 5 days ago (1 children)

I only upload photos from the web interface. They all always become webp.

[–] tal@lemmy.today 1 points 5 days ago* (last edited 5 days ago) (1 children)

Hmm. I'm certain that they've just failed on lemmy.today's vanilla Lemmy Web UI, not converted.

goes to test

I just created a test (non-animated) gif. Trying to upload it just fails


that is, one can select it and try to upload it, but the Web UI never inserts the uploaded image URL in the textbox.

Here it is on catbox.moe:

collapsed inline media

If I convert it to a PNG, a format that pict-rs does understand, it uploads without being converted to WebP:

collapsed inline media

Maybe it's something unique to lemmy.blahaj.zone?

EDIT: There's an option in the docker/docker-compose.yml in the lemmy git repo showing an example of how to add an option to force pict-rs to convert everything to WebP. So my bet is that lemmy.blahaj.zone has done that:

https://github.com/LemmyNet/lemmy/blob/main/docker/docker-compose.yml

# we can set options to pictrs like this, here we set max. image size and forced format for conversion                                                                                                                                                      
# entrypoint: /sbin/tini -- /usr/local/bin/pict-rs -p /mnt -m 4 --image-format webp

EDIT2: @Ada@lemmy.blahaj.zone would know.

[–] ada@lemmy.blahaj.zone 2 points 5 days ago

We run our own custom image caching setup. I'll ask Kaity to look in to it and see what's going on