mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 19:31:35 +00:00
Increase default animation bounds, remove references to converting animations to videos
This commit is contained in:
parent
0b70ca49e4
commit
dce0827099
3 changed files with 18 additions and 28 deletions
|
@ -47,11 +47,11 @@ max_area = 40000000
|
||||||
max_file_size = 40
|
max_file_size = 40
|
||||||
|
|
||||||
[media.animation]
|
[media.animation]
|
||||||
max_width = 256
|
max_width = 1920
|
||||||
max_height = 256
|
max_height = 1920
|
||||||
max_area = 65536
|
max_area = 2073600
|
||||||
max_file_size = 40
|
max_file_size = 40
|
||||||
max_frame_count = 100
|
max_frame_count = 900
|
||||||
|
|
||||||
[media.video]
|
[media.video]
|
||||||
enable = true
|
enable = true
|
||||||
|
|
30
pict-rs.toml
30
pict-rs.toml
|
@ -281,47 +281,37 @@ webp = 100
|
||||||
[media.animation]
|
[media.animation]
|
||||||
## Optional: max animation width (in pixels)
|
## Optional: max animation width (in pixels)
|
||||||
# environment variable: PICTRS__MEDIA__ANIMATION__MAX_WIDTH
|
# environment variable: PICTRS__MEDIA__ANIMATION__MAX_WIDTH
|
||||||
# default: 256
|
# default: 1920
|
||||||
#
|
max_width = 1920
|
||||||
# If an animation exceeds this value, it may be converted to a silent video
|
|
||||||
max_width = 256
|
|
||||||
|
|
||||||
## Optional: max animation height (in pixels)
|
## Optional: max animation height (in pixels)
|
||||||
# environment variable: PICTRS__MEDIA__ANIMATION__MAX_HEIGHT
|
# environment variable: PICTRS__MEDIA__ANIMATION__MAX_HEIGHT
|
||||||
# default: 256
|
# default: 1920
|
||||||
#
|
max_height = 1920
|
||||||
# If an animation exceeds this value, it may be converted to a silent video
|
|
||||||
max_height = 256
|
|
||||||
|
|
||||||
## Optional: max animation area (in pixels)
|
## Optional: max animation area (in pixels)
|
||||||
# environment variable: PICTRS__MEDIA__ANIMATION__MAX_AREA
|
# environment variable: PICTRS__MEDIA__ANIMATION__MAX_AREA
|
||||||
# default: 65,526
|
# default: 2,073,600
|
||||||
#
|
max_area = 2073600
|
||||||
# If an animation exceeds this value, it may be converted to a silent video
|
|
||||||
max_area = 65536
|
|
||||||
|
|
||||||
## Optional: max animation size (in Megabytes)
|
## Optional: max animation size (in Megabytes)
|
||||||
# environment variable: PICTRS__MEDIA__ANIMATION__MAX_FILE_SIZE
|
# environment variable: PICTRS__MEDIA__ANIMATION__MAX_FILE_SIZE
|
||||||
# default: 40
|
# default: 40
|
||||||
#
|
|
||||||
# If an animation exceeds this value, it may be converted to a silent video
|
|
||||||
max_file_size = 40
|
max_file_size = 40
|
||||||
|
|
||||||
## Optional: max frame count
|
## Optional: max frame count
|
||||||
# environment variable: PICTRS__MEDIA__ANIMATION__MAX_FRAME_COUNT
|
# environment variable: PICTRS__MEDIA__ANIMATION__MAX_FRAME_COUNT
|
||||||
# default: 100
|
# default: 100
|
||||||
#
|
max_frame_count = 900
|
||||||
# If an animation exceeds this value, it may be converted to a silent video
|
|
||||||
max_frame_count = 100
|
|
||||||
|
|
||||||
## Optional: set file type for all animations
|
## Optional: set file type for all animations
|
||||||
# environment variable: PICTRS__MEDIA__ANIMATION__FORMAT
|
# environment variable: PICTRS__MEDIA__ANIMATION__FORMAT
|
||||||
# default: empty
|
# default: empty
|
||||||
#
|
#
|
||||||
# available options: apng, avif, gif, webp
|
# available options: apng, avif, gif, webp
|
||||||
# When set, all uploaded still images will be converted to this file type. For balancing quality vs
|
# When set, all uploaded animated images will be converted to this file type. For balancing quality
|
||||||
# file size vs browser support, 'avif', 'jxl', and 'webp' should be considered. By default, images
|
# vs file size vs browser support, 'avif', 'jxl', and 'webp' should be considered. By default,
|
||||||
# are stored in their original file type.
|
# images are stored in their original file type.
|
||||||
format = "webp"
|
format = "webp"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -261,10 +261,10 @@ impl Default for ImageDefaults {
|
||||||
impl Default for AnimationDefaults {
|
impl Default for AnimationDefaults {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
AnimationDefaults {
|
AnimationDefaults {
|
||||||
max_height: 256,
|
max_height: 1920,
|
||||||
max_width: 256,
|
max_width: 1920,
|
||||||
max_area: 65_536,
|
max_area: 2_073_600,
|
||||||
max_frame_count: 100,
|
max_frame_count: 900,
|
||||||
max_file_size: 40,
|
max_file_size: 40,
|
||||||
quality: AnimationQualityDefaults {},
|
quality: AnimationQualityDefaults {},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue