Mojolic...ipe::Png(3)
β¨ NAME β¨
okay bestie, welcome to Mojolicious::Plugin::AssetPack::Pipe::Png β the manual page your header knows as Mojolic...ipe::Png(3) π«Ά. Its whole vibe? Crush PNG image files. π
π¦ SYNOPSIS π¦
πΈ Application
plugin AssetPack => {pipes => ["Png"]};
# Forces the use of "optipng -clobber -preserve $input"
app->asset->pipe("Png")->app("optipng");
# Forces the use of "pngquant --speed 2 -"
app->asset->pipe("Png")->app("pngquant");
# Set custom application arguments:
app->asset->pipe("Png")->app("pngquant")->app_args([qw(--speed 10 --ordered -)]);
π DESCRIPTION π
Mojolicious::Plugin::AssetPack::Pipe::Png can be used to crush "png" image files. literally its whole job, and it ate π₯.
This plugin has default settings for "pngquant" (default) and "optipng". Which will be the default in the future is unknown, so force the one you want in case that matters. no cap, future vibes are mysterious π.
This pipe is EXPERIMENTAL. Feedback wanted. π yep, it said it, not me.
TODO: Detect which application is installed and use the best available.
TODO: Add support for pngcrush.
π ATTRIBUTES π
π§ app
$str = $self->app;
$self = $self->app("pngquant");
Can be used to set a custom application. so if you wanna pick the app, this is your moment β¨.
π app_args
$array = $self->app_args;
$self = $self->app_args([qw(-clobber $input)]);
Can be used to set custom "app" arguments. The special $input string in the argument list will be replaced with the path to a temp file holding the image data. bestie, that $input placeholder is doing main character work π
.
If no $input element is found in the "app_args" list, then STDIN and STDOUT will be used instead. periodt π.
π METHODS π
π₯ process
See "process" in Mojolicious::Plugin::AssetPack::Pipe. thatβs the lore iykyk π.
π SEE ALSO π
Mojolicious::Plugin::AssetPack. go peek, bestie π.
mwah π β this page is from perl v5.42.0, dated 2024-12-12, and its manual tag is Mojolic...ipe::Png(3).
π¦ where this page comes from
- opensuse-leap 16.0: perl-Mojolicious-Plugin-AssetPack 2.150.0-bp160.1.11 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms