7
submitted 2 months ago by gregor@gregtech.eu to c/lemmy_support@lemmy.ml

Am I doing the lemmy image compression and removal of old proxied images correctly? Here's my docker service for lemmy:

pictrs:
    image: docker.io/asonix/pictrs:0.5
    # this needs to match the pictrs url in lemmy.hjson
    hostname: pictrs
    # 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
    entrypoint: /sbin/tini -- /usr/local/bin/pict-rs run  --max-file-count 5  --media-max-file-size 500  --media-image-format webp --media-image-quality-webp 50 --media-animation-quality-webp 50 --media-retention-proxy 1d --media-retention-variants 1d  filesystem sled -p /mnt
    user: 991:991
    volumes:
      - ./volumes/pictrs:/mnt:Z
    restart: always
    logging: *default-logging
no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here
this post was submitted on 05 Sep 2024
7 points (100.0% liked)

Lemmy Support

4651 readers
1 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS