NAME
Imager::File::HEIF::Encoder - information about a libheif encoder
SYNOPSIS
use Imager::File::HEIF;
my @encoders = Imager::File::HEIF->encoders;
for my $encoder (@encoders) {
print "Id: ", $encoder->id, "\n";
print "Name: ", $encoder->name, "\n";
print "Compression: ", $encoder->compression, "\n";
print "CanLossy: ", $encoder->supports_lossy_compression, "\n";
print "CanLossless: ", $encoder->supports_lossless_compression, "\n";
for my $param ($encoder->parameters) {
# see Imager::File::HEIF::Encoder::Parameter
...
}
}
DESCRIPTION
This is the object type that the Imager::File::HEIF encoders method returns.
METHODS
- id
-
The identifier for this encoder, this can be supplied as
heif_encoderwhen writing HEIF images. - name
-
A descriptive name for the encoder. Typically includes the name and version of the underlying library.
- compression
-
The compression supported by this encoder, this will match one of the names returned by the Imager::File::HEIF compression_names() method.
- supports_lossy_compression
-
Returns true if the encoder supports lossy compression.
- supports_lossless_compression
-
Returns true if the encoder supports lossless compression.
- parameters
-
Returns a list of Imager::File::HEIF::Encoder::Parameter objects representing the parameters the encoder accepts.
AUTHOR
Tony Cook <tony@develop-help.com>