@@ -, +, @@ - Home/Patrons/anyPatron - Home/Tools/Upload patron images - Home/Tools/Patron card creator/Images --- koha-tmpl/intranet-tmpl/prog/en/includes/patroncards-errors.inc | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt | 2 +- .../intranet-tmpl/prog/en/modules/patroncards/image-manage.tt | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tt | 2 +- patroncards/image-manage.pl | 2 +- tools/picture-upload.pl | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patroncards-errors.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/patroncards-errors.inc @@ -36,7 +36,7 @@ [% ELSIF ( error == 301 ) %] An error has occurred while attempting to upload the image file. [% INCLUDE asksysadmin %] [% ELSIF ( error == 302 ) %] - Image exceeds 500KB. Please resize and import again. + Image exceeds 2MB. Please resize and import again. [% ELSIF ( error == 303 ) %] 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. [% ELSIF ( error == 304 ) %] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -276,7 +276,7 @@ [% ELSE %]
[% 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.
[% END %] -

Only PNG, GIF, JPEG, XPM formats are supported. Maximum image size is 500KB.

+

Only PNG, GIF, JPEG, XPM formats are supported. Maximum image size is 2MB.

--- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt @@ -39,7 +39,7 @@

Manage additional images to use as logo, decoration or background on a patron card layout.

-
Only PNG, GIF, JPEG, XPM formats are supported. Maximum image size is 500KB.
+
Only PNG, GIF, JPEG, XPM formats are supported. Maximum image size is 2MB.
  1. --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tt @@ -126,7 +126,7 @@ [% END %]
    -

    NOTE: Only PNG, GIF, JPEG, XPM formats are supported.

    +

    NOTE: Only PNG, GIF, JPEG, XPM formats are supported. Maximum image size is 2MB.

    1. --- a/patroncards/image-manage.pl +++ a/patroncards/image-manage.pl @@ -90,7 +90,7 @@ if ($op eq 'upload') { 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; --- a/tools/picture-upload.pl +++ a/tools/picture-upload.pl @@ -269,7 +269,7 @@ sub handle_file { # 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; --