[% ELSIF ( error == 301 ) %]
<span>An error has occurred while attempting to upload the image file. </span>[% INCLUDE asksysadmin %]
[% ELSIF ( error == 302 ) %]
- <span>Image exceeds 500KB. Please resize and import again. </span>
+ <span>Image exceeds 2MB. Please resize and import again. </span>
[% ELSIF ( error == 303 ) %]
<span>The database image quota currently only allows a maximum of [% image_limit | html %] images to be stored at any one time. Please delete one or more images to free up quota space. </span>
[% ELSIF ( error == 304 ) %]
[% ELSE %]
<div class="hint">[% patron.title | html %] [% patron.firstname | html %] [% patron.surname | html %] does not currently have an image available. To import an image for [% patron.title | html %] [% patron.firstname | html %] [% patron.surname | html %], enter the name of an image file to upload.</div>
[% END %]
- <p>Only PNG, GIF, JPEG, XPM formats are supported. Maximum image size is 500KB.</p>
+ <p>Only PNG, GIF, JPEG, XPM formats are supported. Maximum image size is 2MB.</p>
<label for="uploadfile">Select the file to upload: </label>
<input type="file" id="uploadfile" name="uploadfile" required="required" />
<div class="action">
<p>Manage additional images to use as logo, decoration or background on a patron card layout.</p>
<form name="upload_images" method="post" action="/cgi-bin/koha/patroncards/image-manage.pl" enctype="multipart/form-data">
<fieldset class="brief">
- <div class="hint">Only PNG, GIF, JPEG, XPM formats are supported. Maximum image size is 500KB.</div>
+ <div class="hint">Only PNG, GIF, JPEG, XPM formats are supported. Maximum image size is 2MB.</div>
<ol>
<li>
<label for="uploadfile">Select the file to upload: </label>
[% END %]
<form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data" id="upload_form">
<fieldset class="rows">
- <p><strong>NOTE:</strong> Only PNG, GIF, JPEG, XPM formats are supported.</p>
+ <p><strong>NOTE:</strong> Only PNG, GIF, JPEG, XPM formats are supported. Maximum image size is 2MB.</p>
<ol class="radio">
<li>
<label for="zipfile"><input type="radio" id="zipfile" name="filetype" value="zip" checked="checked" /> Zip file</label></li>
else {
my $errstr = '';
my $size = $image->Get('filesize');
- $errstr = 302 if $size > 500000;
+ $errstr = 302 if $size > 2097152;
$image->Set(magick => 'png'); # convert all images to png as this is a lossless format which is important for resizing operations later on
my $err = put_image($image_name, $image->ImageToBlob()) || '0';
$errstr = 101 if $err == 1;
# Now process any imagefiles
$logger->debug("Source: $source");
my $size = ( stat($source) )[7];
- if ( $size > 550000 ) {
+ if ( $size > 2097152 ) {
# This check is necessary even with image resizing to avoid possible security/performance issues...
$filerrors{'OVRSIZ'} = 1;
push my @filerrors, \%filerrors;