2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-11-20 03:11:14 +00:00

Increase default animation bounds, remove references to converting animations to videos

This commit is contained in:
asonix 2023-08-30 21:55:53 -05:00
parent 0b70ca49e4
commit dce0827099
3 changed files with 18 additions and 28 deletions

View file

@ -47,11 +47,11 @@ max_area = 40000000
max_file_size = 40
[media.animation]
max_width = 256
max_height = 256
max_area = 65536
max_width = 1920
max_height = 1920
max_area = 2073600
max_file_size = 40
max_frame_count = 100
max_frame_count = 900
[media.video]
enable = true

View file

@ -281,47 +281,37 @@ webp = 100
[media.animation]
## Optional: max animation width (in pixels)
# environment variable: PICTRS__MEDIA__ANIMATION__MAX_WIDTH
# default: 256
#
# If an animation exceeds this value, it may be converted to a silent video
max_width = 256
# default: 1920
max_width = 1920
## Optional: max animation height (in pixels)
# environment variable: PICTRS__MEDIA__ANIMATION__MAX_HEIGHT
# default: 256
#
# If an animation exceeds this value, it may be converted to a silent video
max_height = 256
# default: 1920
max_height = 1920
## Optional: max animation area (in pixels)
# environment variable: PICTRS__MEDIA__ANIMATION__MAX_AREA
# default: 65,526
#
# If an animation exceeds this value, it may be converted to a silent video
max_area = 65536
# default: 2,073,600
max_area = 2073600
## Optional: max animation size (in Megabytes)
# environment variable: PICTRS__MEDIA__ANIMATION__MAX_FILE_SIZE
# default: 40
#
# If an animation exceeds this value, it may be converted to a silent video
max_file_size = 40
## Optional: max frame count
# environment variable: PICTRS__MEDIA__ANIMATION__MAX_FRAME_COUNT
# default: 100
#
# If an animation exceeds this value, it may be converted to a silent video
max_frame_count = 100
max_frame_count = 900
## Optional: set file type for all animations
# environment variable: PICTRS__MEDIA__ANIMATION__FORMAT
# default: empty
#
# available options: apng, avif, gif, webp
# When set, all uploaded still images will be converted to this file type. For balancing quality vs
# file size vs browser support, 'avif', 'jxl', and 'webp' should be considered. By default, images
# are stored in their original file type.
# When set, all uploaded animated images will be converted to this file type. For balancing quality
# vs file size vs browser support, 'avif', 'jxl', and 'webp' should be considered. By default,
# images are stored in their original file type.
format = "webp"

View file

@ -261,10 +261,10 @@ impl Default for ImageDefaults {
impl Default for AnimationDefaults {
fn default() -> Self {
AnimationDefaults {
max_height: 256,
max_width: 256,
max_area: 65_536,
max_frame_count: 100,
max_height: 1920,
max_width: 1920,
max_area: 2_073_600,
max_frame_count: 900,
max_file_size: 40,
quality: AnimationQualityDefaults {},
}