mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 19:31:35 +00:00
Add '[media] format' to pict-rs.toml
This commit is contained in:
parent
5a3d46845b
commit
0833271281
1 changed files with 10 additions and 0 deletions
10
pict-rs.toml
10
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
|
||||
|
|
Loading…
Reference in a new issue