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?

you are viewing a single comment's thread
view the rest of the comments
[–] 9 points 3 years ago (1 child)

I'm not sure if Lemmy already does it or not but I wouldn't mind if it also compressed attached pictures to save on storage and bandwidth like some other forums does (eg compress picture to <1mb).

  • source
  • parent
  • hideshow 2 child comments
  • [–] 9 points 3 years ago (1 child)

    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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 0 points 3 years ago (1 child)

    ani.social

    I love that lol.

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

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 3 years ago (1 child)

    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
    
  • source
  • parent
  • hideshow 2 child comments