Summary: | Add tool to set/reduce local cover image size and quality, interactively and in batch. | ||
---|---|---|---|
Product: | Koha | Reporter: | Manos PETRIDIS <egpetridis> |
Component: | Tools | Assignee: | Bugs List <koha-bugs> |
Status: | NEW --- | QA Contact: | Testopia <testopia> |
Severity: | new feature | ||
Priority: | P5 - low | CC: | gmcharlt, hinemoea.viault, magnus, martin.renvoize, russellgeeps |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: |
Image before upload 1085x1597 pixels 24bit jpeg 430KB
koha processed image 600x883 pixels 24bit png 940KB |
Description
Manos PETRIDIS
2022-06-26 22:47:33 UTC
Koha currently uses GD's copyResampled to resize local cover images upon upload. Two versions of the original image are produced: * a thumbnail with a maximum width of 140 and a maximum height of 200 * a "full size" version with a maximum width of 600 and a maximum height of 800 Koha only scales down; it does not scale images up if they're already within the size limits. Also, if the width is larger than the maximum, the width adjustment is what controls the overall resizing, meaning that it's possible for the result to be taller than the maximum height. Created attachment 147467 [details]
Image before upload 1085x1597 pixels 24bit jpeg 430KB
Created attachment 147468 [details]
koha processed image 600x883 pixels 24bit png 940KB
koha manages however to increase file size by 119% (430KB to 940KB) while reducing image size to 30,6% of the original, both in 24bit colour. Is that sane? Please also check Bug 23984 - Local cover 'thumbnail' size is bigger than 'imagefile' size in biblioimages table We noticed the same behavior from Koha. You can see Bug 33857 The patch add a script that reduce and resize oversized local cover images. We are experiencing the same issues with our Koha. We upload high quality images of maps, but they all get reduced in quality so much that you can't make out any details. Please assist, which conf. files can we modify to make it stop or to no change the quality? |