Got a PNG file of 7016 × 7501 size which would cause an OOM on Windows, but not eg. on Mac.
https://dl.dropboxusercontent.com/u/54507676/gorillaz.png
The following script would still print the size, despite the error, but it wouldn't scale it:
#!/usr/bin/perl
use strict;
use Image::Scale;
my $img = Image::Scale->new('gorillaz.png');
print $img->width . 'x' . $img->height . "\n";
$img->resize( {
width => 300,
height => 300,
keep_aspect => 1,
} );
$img->save_png('resized.png');
1;
Tested with 0.08 only, both platforms.
Got a PNG file of 7016 × 7501 size which would cause an OOM on Windows, but not eg. on Mac.
https://dl.dropboxusercontent.com/u/54507676/gorillaz.png
The following script would still print the size, despite the error, but it wouldn't scale it:
Tested with 0.08 only, both platforms.