Skip to content

Allow configuration of image scaling #1826

@bobintetley

Description

@bobintetley

At present, images are scaled to RESIZE_IMAGES_SPEC in sitedefs.py

Since SM users cover their storage costs, allow them to choose from a number of presets in the options screen, put it on the Display tab and name the configuration element ResizeImagesSpec:

(system)
1MP (1024px)
2MP (1414px)
3MP (1732px)
4MP (2048px)
5MP (2236px)
8MP (2828px)
16MP (4096px)

The default being (system), which translates to RESIZE_IMAGES_SPEC sitedef.

The resize spec needs to then be chosen appropriately in src/asm3/media.py -> scale_all_animal_images + attach_file_from_form, add a new function in media for get_resize_images_spec() that can return it to these functions.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions