restart: always
pictrs:
- image: asonix/pictrs:0.3.1
+ image: asonix/pictrs:0.4.0-beta.19
# 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
- PICTRS__API_KEY=API_KEY
- RUST_LOG=debug
- RUST_BACKTRACE=full
+ - PICTRS__MEDIA__VIDEO_CODEC=vp9
+ - PICTRS__MEDIA__GIF__MAX_WIDTH=256
+ - PICTRS__MEDIA__GIF__MAX_HEIGHT=256
+ - PICTRS__MEDIA__GIF__MAX_AREA=65536
+ - PICTRS__MEDIA__GIF__MAX_FRAME_COUNT=400
user: 991:991
volumes:
- ./volumes/pictrs:/mnt