Bug 33143

Summary: Improve handling of local covers upon upload so that they don't increase in file size while decreasing in pixel size.
Product: Koha Reporter: Manos PETRIDIS <egpetridis>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: a.roussos, m.de.rooy
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:
Attachments: Image before upload 1085x1597 pixels 24bit 430.47 KB, image/jpeg
koha processed image 600x883 pixels 24bit 940.43 KB, image/png

Description Manos PETRIDIS 2023-03-05 20:50:24 UTC
Created attachment 147774 [details]
Image before upload 1085x1597 pixels 24bit 430.47 KB, image/jpeg

It seems that koha may increase image file size upon upload while reducing pixel size. 

In the attached examples, koha manages to increase image file size by 119% (430KB to 940KB) while reducing image size to 30,6% of the original, both in 24bit colour, therefore needlessly increasing database size.
Comment 1 Manos PETRIDIS 2023-03-05 20:51:09 UTC
Created attachment 147775 [details]
koha processed image 600x883 pixels 24bit 940.43 KB, image/png