The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

HTML::FormFu::Validator::Imager::Size

SYNOPSIS

    ---
    elements:
      - type: file
        name: photo
        inflators:
          - type: Imager
        validators:
          - type: 'Imager::Size'
            pixels: 200

METHODS

pixels

The maximum allowed pixel dimension of either the width or height.

width

The maximum allowed width in pixels.

height

The maximum allowed height in pixels.

exact_width

If set, the image width in pixels must exactly match this value.

exact_height

If set, the image height in pixels must exactly match this value.

SEE ALSO

HTML::FormFu::Imager, HTML::FormFu

AUTHOR

Carl Franks

LICENSE

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.