|
|
@ -84,7 +84,7 @@ sub save { |
|
|
|
my ($im_w, $im_h) = ($conf->{maxres} =~ m/(\d+)x(\d+)/oi); |
|
|
|
my ($im_w, $im_h) = ($conf->{maxres} =~ m/(\d+)x(\d+)/oi); |
|
|
|
Imager->set_file_limits( |
|
|
|
Imager->set_file_limits( |
|
|
|
width => $im_w, height => $im_h, |
|
|
|
width => $im_w, height => $im_h, |
|
|
|
bytes => $conf->{maxsize}, |
|
|
|
bytes => $conf->{maxmem}, |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
my $image = Imager->new(file => $upload->asset->path) |
|
|
|
my $image = Imager->new(file => $upload->asset->path) |
|
|
|