Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
# 20211224 Perl programming solution
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Imager;
|
||||
use Imager::Test 'test_image_raw';
|
||||
|
||||
my $img = test_image_raw();
|
||||
my $IO = Imager::io_new_bufchain();
|
||||
Imager::i_writeppm_wiol($img, $IO) or die;
|
||||
my $raw = Imager::io_slurp($IO) or die;
|
||||
|
||||
open my $fh, '|-', '/usr/local/bin/convert - -compress none output.jpg' or die;
|
||||
binmode $fh;
|
||||
syswrite $fh, $raw or die;
|
||||
close $fh;
|
||||
Loading…
Add table
Add a link
Reference in a new issue