Family Day update
This commit is contained in:
parent
aac6731f2c
commit
9ad63ea473
2442 changed files with 39761 additions and 8255 deletions
9
Task/Color-quantization/Perl/color-quantization.pl
Normal file
9
Task/Color-quantization/Perl/color-quantization.pl
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Imager;
|
||||
|
||||
my $img = Imager->new;
|
||||
$img->read(file => 'frog.png');
|
||||
my $img16 = $img->to_paletted({ max_colors => 16});
|
||||
$img16->write(file => "frog-16.png")
|
||||
Loading…
Add table
Add a link
Reference in a new issue