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?

  • hitagi (ani.social)
    link
    fedilink
    English
    31 year ago

    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