Skip to content

OOM on Windows only(?) #9

@mherger

Description

@mherger

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions