NAME

App::BlurFill::Web - The web interface to App::BlurFill

SYNOPSIS

# In a PSGI environment
use App::BlurFill::Web;

App::BlurFill::Web->to_app;

DESCRIPTION

App::BlurFill::Web is a web interface for the App::BlurFill module. It allows users to upload an image file, specify the desired width and height, and receive a blurred image file in response.

ROUTES

POST /blur

This route accepts an image file upload and optional width and height parameters. It processes the image and returns a blurred version of the image. The blurred image is returned as a downloadable file.

PARAMETERS

image

The image file to be processed. This parameter is required. It should be a valid image file format (e.g., JPEG, PNG, GIF).

width

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

height

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

EXAMPLE

POST /blur
Content-Type: multipart/form-data

image: <binary image data>
width: 800
height: 600

Using curl

curl -OJ -X POST -F "image=@path/to/image.jpg" -F "width=800" -F "height=600" http://localhost:3000/blur

RESPONSE

The response will be a blurred image file with the specified width and height.

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 same terms as the Perl 5 programming language system itself.