Compress-Zopfli
view release on metacpan or search on metacpan
compression variations. See ["CONSTANTS"](#constants) for a complete list.
# COMPRESS
The `zopfli` library can only compress, not decompress. Existing zlib or
deflate libraries can decompress the data, i.e. `IO::Compress`.
## `$compressed = compress( $input, ZOPFLI_FORMAT, \%opts )`
This is the only function provided by `Compress::Zopfli`. The input must
be a string, as the underlying function does not seem to support any streaming
interface. More convenient APIs may be implemented on top.
# OPTIONS
Options map directly to the `zopfli` low-level function. Must be a hash
reference (i.e. anonymous hash) and supports the following options:
- `iterations`
Maximum amount of times to rerun forward and backward pass to optimize LZ77
lib/Compress/Zopfli.md view on Meta::CPAN
The constants are exported by default.
# COMPRESS
The _zopfli_ library can only compress, not decompress. Existing zlib or
deflate libraries can decompress the data, i.e. _IO::Compress_.
## **($compressed) = compress( $input, _ZOPFLI\_FORMAT_, \[OPTIONS\] \] )**
This is the only function provided by _Compress::Zopfli_. The input must
be a string. The underlying function does not seem to support any streaming
interface.
# OPTIONS
Options map directly to the _zopfli_ low-level function. Must be a hash
reference (i.e. anonymous hash) and supports the following options:
- **iterations**
Maximum amount of times to rerun forward and backward pass to optimize LZ77
lib/Compress/Zopfli.pm view on Meta::CPAN
The constants are exported by default.
=head1 COMPRESS
The I<zopfli> library can only compress, not decompress. Existing zlib or
deflate libraries can decompress the data, i.e. I<IO::Compress>.
=head2 B<($compressed) = compress( $input, I<ZOPFLI_FORMAT>, [OPTIONS] ] )>
This is the only function provided by I<Compress::Zopfli>. The input must
be a string. The underlying function does not seem to support any streaming
interface.
=head1 OPTIONS
Options map directly to the I<zopfli> low-level function. Must be a hash
reference (i.e. anonymous hash) and supports the following options:
=over 5
=item B<iterations>
( run in 0.254 second using v1.01-cache-2.11-cpan-4d50c553e7e )