[Koha-bugs] [Bug 33857] Reduce and resize local cover images
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon May 29 18:48:54 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33857
Hinemoea Viault <hinemoea.viault at inlibro.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hinemoea.viault at inlibro.com
--- Comment #1 from Hinemoea Viault <hinemoea.viault at inlibro.com> ---
Created attachment 151781
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=151781&action=edit
Resize local cover images
This patch add a script in ./misc/maintenance/ that allows to reduce and resize
local cover images.
Test plan:
1. Download the attached image large-image.jpg
--> It should be ~170kB and 1000×1500 pixels
2. Enable LocalCoverImages in System preferences
3. Find a record in the staff interface
4. Go to "Images" tab
5. Upload large-image.jpg image
5.1. Click on "Upload"
5.2. Click on "Drop files here or click to select a file"
5.3. Choose picture (large-image.jpg)
5.4. Click on "Process images"
6. Click on image for large image
7. Right-click on the image and save it
--> It is ~930kB and 600x900 pixels
8. Apply the patch
9. In the terminal, run the script resize_cover_images.pl
9.1. Before running the script you need to run the following lines
--> sudo apt install imagemagick
--> sudo apt install libimage-magick-perl
9.2. Run resize_cover_images.pl
--> perl ./misc/maintenance/resize_cover_images.pl
10. Repeat steps 6 and 7
--> The image is ~200kB and 267x400 pixels
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list