creates uncompressed PNG images from raw RGBA data
C Perl 6
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Image::PNG::Inflated build status

Creates PNG images from raw RGBA data of depth 8, chunking the data into uncompressed 64k blocks.


use Image::PNG::Inflated;

my $row    =^256 .flatmap: { $_ xx 3, 255 });
my $pixels = [~] $row xx 64;
my $img    = to-png $pixels, 256, 64;
                   # width --^    ^-- height

spurt 'grayscale.png', $img;

Bugs and Development

Development happens at GitHub. If you found a bug or have a feature request, use the issue tracker over there.

Copyright and License

Copyright (C) 2015, 2017 by

Distributed under the Boost Software License, Version 1.0