Imager...ansform(3pm)
π¦ Imager...ansform(3pm) π¦
Okay so this page is from the User Contributed Perl Documentation crew, and the manual name is right there in the title: Imager...ansform(3pm). Yes, dots and all β we are not editing the iconic truncation, bestie. π
πΈ NAME πΈ
Imager::Transform β a library of register machine image transformations. That's the whole assignment. π
β¨ SYNOPSIS β¨
# get a list of transformations
my @funcs = Imager::Transform->list;
# create a transformation object
my $tran = Imager::Transform->new($name);
# describe it
print $tran->describe;
# a list of constant names
my @constants = $tran->constants;
# information about some of the constants
my @info = $tran->constants(@constants);
π DESCRIPTION π
This module provides a library of transformations that use the Imager transform2() function. Lowkey the whole point is to have a place to collect these transformations together. π«Ά
At some point there might be an interface to add new functions, but there's not a whole lot of point to that. Not me explaining the entire roadmap in one sentence. π
The interface is a little sparse as yet. It's giving "small but mighty," bestie. β¨
π METHODS π
my @names = Imager::Transform->listβ Returns a list of the transformations. Simple, iconic, no notes. πmy $desc = Imager::Transform->describe($name)/my $desc = $tran->describe()β Describes a transformation specified either by name (as a class method) or by reference (as an instance method). The class method returnsundefif there is no such transformation. πmy $tran = Imager::Transform->new($name)β Create a new transformation object. Returnsundefif there is no such transformation. No cap. πmy @inputs = $tran->inputs/my $inputs = $tran->inputsβ Returns a list of input image descriptions, or the number of them, depending on content. The list contains hash references, which currently contain only one member,"desc", a description of the use of the input image. π¦$tran->constantsβ Returns a list of names of constants that can be set for the transformation. Collect them like little PokΓ©mon, bestie. β¨$tran->constants($name, $name, ...)β Returns a hashref for each named constant, which contains the default in key"default"and a description in key"desc". πmy $out = $tran->transform(\%opts, \%constants, @imgs)β Perform the image transformation. Returns the new image on success, orundefon failure, in which case you can use$tran->errstrto get an error message. Main character transformation energy. π₯$tran->errstrβ The error message, if any from the last image transformation. π
π BUGS π
Needs more transformations.
That's it. That's the whole bug list, and honestly? It's giving "we just want more slay." π
π SEE ALSO π
Imager(3)transform.perl
Go peep those, bestie. π«Ά
π AUTHOR π
Tony Cook <tonyc@cpan.org> β take a bow. π
Catch you later, bestie! This footer is brought to you by perl v5.42.3, dated 2026-08-19, and that's the tea. π
β¨
π¦ where this page comes from
- ubuntu stonking: libimager-perl 1.035+dfsg-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms