From 0833271281d79ddc40cf6bb82d574d1e73c3bff2 Mon Sep 17 00:00:00 2001 From: asonix Date: Mon, 19 Jun 2023 13:33:27 -0500 Subject: [PATCH] Add '[media] format' to pict-rs.toml --- pict-rs.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pict-rs.toml b/pict-rs.toml index e612d83..00ff868 100644 --- a/pict-rs.toml +++ b/pict-rs.toml @@ -184,6 +184,16 @@ audio_codec = "aac" # default: ['blur', 'crop', 'identity', 'resize', 'thumbnail'] filters = ['blur', 'crop', 'identity', 'resize', 'thumbnail'] +## Optional: set file type for all uploads +# environment variable: PICTRS__MEDIA__FORMAT +# default: empty +# +# available options: png, jpeg, webp +# When set, all uploaded still images will be converted to this file type. If you care about file +# size, setting this to 'webp' is probably the best option. By default, images are stored in their +# original file type. +format = "webp" + ## Optional: whether to validate images uploaded through the `import` endpoint # environment variable: PICTRS__MEDIA__SKIP_VALIDATE_IMPORTS # default: false