Where are all the videos and gifs?

sneezelord@lemmy.world to No Stupid Questions@lemmy.world – 216 points –

I’ve noticed that on Lemmy there aren’t really any videos/gifs as I scroll. I just see post titles, links, or images.

Is there a reason videos and gifs aren’t showing up on my feed?

112

You are viewing a single comment

I wouldn’t mind if it also compressed attached pictures to save on storage and bandwidth

It already does depending on the instance configuration. In my instance, all images are converted to WEBP and downscaled to 1000 pixels max either side.

ani.social

I love that lol.

Is there somewhere in the docs that explains how to configure your instance to compress images like that?

ani.social

I love that lol.

hehe

Is there somewhere in the docs that explains how to configure your instance to compress images like that?

The Lemmy docs are kind of lacking admittedly but you can configure image compression through pict-rs. You can find all the environment variables you can use here.

My docker-compose.yml file includes this:

pictrs:
    image: asonix/pictrs:0.4.0-rc.9-linux-arm64v8
    environment:
      - PICTRS__MEDIA__PREPROCESS_STEPS=resize=1000
      - PICTRS__MEDIA__MAX_FILE_SIZE=8
      - PICTRS__MEDIA__MAX_WIDTH=10000
      - PICTRS__MEDIA__MAX_HEIGHT=10000
      - PICTRS__MEDIA__FORMAT=webp