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?

  • hitagiA
    link
    fedilink
    English
    arrow-up
    8
    ·
    1 year ago

    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.

    • dasprii@lemmy.froztbyte.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      ani.social

      I love that lol.

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

      • hitagiA
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 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