in reply to resampling an image using GD not working on Linux
I played a little with the program (from GitHub) and the warning is printed when one of the parameters is 0 (zero).
Considering files[0] .../picwoodpecker/2016_..._0.jpg 568 0 GD Warning: one parameter to a memory allocation multiplication is neg +ative or zero, failing operation gracefully
The first parameter number is '$small_w' and the second is '$small_h', from the code line:
my $resized = GD::Image->new($small_w,$small_h);
Update: made a clarification.
Best regards, Stefan
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: resampling an image using GD not working on Linux
by Discipulus (Canon) on Dec 08, 2016 at 14:26 UTC | |
by stefbv (Curate) on Dec 09, 2016 at 08:24 UTC |
In Section
Seekers of Perl Wisdom