Bug 33202 - Add system preference to limit the size of local cover images
Summary: Add system preference to limit the size of local cover images
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: System Administration (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-10 21:03 UTC by Caroline Cyr La Rose
Modified: 2023-08-05 00:37 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Caroline Cyr La Rose 2023-03-10 21:03:07 UTC
Currently the max size of local cover images is hard coded to 600 x 800 px.

Libraries with less resources might want to have smaller images, especially since it can get big real fast (see bug 17650).

The max width and max height could be specified in a system preference rather than be hard coded.

To test :
1. Turn on LocalCoverImages
2. Attach a large image file to a record
3. Right-click on the image and download it
   --> It should have been reduced to a maximum of either 600 (width) or 800 (height) px
Comment 1 Hinemoea Viault 2023-05-29 20:09:29 UTC
See Bug 33857
The patch add a script that reduce and resize local cover images.
The max width and max height are not specified in a system preference, but the image is no size limit to 600 x 800 px.