NAME

App::BlurFill - A simple command line tool to create a blurred background image

SYNOPSIS

use App::BlurFill;

my $blur_fill = App::BlurFill->new(
  file    => 'path/to/image.jpg',
  width   => 650,
  height  => 350,
);

my $output = $blur_fill->process;
print "Blurred image saved to: $output\n";

DESCRIPTION

App::BlurFill is a simple command line tool to create a blurred background image from a given image. It scales the image to a specified width and height, applies a Gaussian blur, and saves the result as a new image.

METHODS

new

my $blur_fill = App::BlurFill->new(
  file    => 'path/to/image.jpg',
  width   => 650,
  height  => 350,
);

Creates a new App::BlurFill object. The following parameters are accepted:

  • file

    The path to the input image file. This parameter is required. =item * width

    The width of the output image. Default is 650 pixels.

  • height

    The height of the output image. Default is 350 pixels.

  • output

    The path to the output image file. If not specified, a filename will be generated based on the input file name and saved in the same directory. The output file will have a "_blur" suffix added to the original filename.

process

my $output = $blur_fill->process;
print "Blurred image saved to: $output\n";

Processes the input image, applies a Gaussian blur, and saves the result as a new image. Returns the path to the output image file.

AUTHOR

Dave Cross <dave@perlhacks.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2025, Magnum Solutions Ltd. All rights reserved.

This is free software; you can redistribute it and/or modify it under the