Resize patron images to upload

Resize  patron images before upload into Koha. Big size patron images can make Koha database size big. You can resize images using imagemagick commands with Ubuntu or Debian.

Install Image Magick

sudo apt-get install imagemagick

Copy all patron images into a folder. Enter inside the folder from command Terminal, Example:

cd /home/koha/Pictures 

mogrify -resize 50% -format jpg *


Change percentage based on the original file size.

Resize image by specifies width and height,

mogrify -resize 800x600 -format jpg *

Specify width only, it automatically calculate height,

mogrify -resize 800x -format jpg *

Information courtesy: Shaiful Azam's Weblog

No comments:

Post a Comment