From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more
12345678910 #!/home/ben/software/install/bin/perluse warnings;use strict;use utf8;use FindBin '$Bin';use Image::PNG::Libpng qw(read_png_file write_png_file) ;my $pngin = read_png_file ("$Bin/../t/tantei-san.png");my $pngout = $pngin->copy_png ();$pngout->set_text ([{key => 'Name', text => 'Shunsaku Kudo'}]); # $pngout->write_png_file ('copy.png');
#!/home/ben/software/install/bin/perl
use
warnings;
strict;
utf8;
FindBin
'$Bin'
;
Image::PNG::Libpng
qw(read_png_file write_png_file)
my
$pngin
= read_png_file (
"$Bin/../t/tantei-san.png"
);
$pngout
=
->copy_png ();
->set_text ([{
key
=>
'Name'
,
text
'Shunsaku Kudo'
}]);
# $pngout->write_png_file ('copy.png');