Bug 33143 - Improve handling of local covers upon upload so that they don't increase in file size while decreasing in pixel size.
Summary: Improve handling of local covers upon upload so that they don't increase in f...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal with 10 votes (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-05 20:50 UTC by Manos PETRIDIS
Modified: 2023-08-05 00:36 UTC (History)
2 users (show)

See Also:
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 (430.47 KB, image/jpeg)
2023-03-05 20:50 UTC, Manos PETRIDIS
Details
koha processed image 600x883 pixels 24bit 940.43 KB, image/png (940.43 KB, image/png)
2023-03-05 20:51 UTC, Manos PETRIDIS
Details

Note You need to log in before you can comment on or make changes to this bug.
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