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

NAME

jpgresize.pl - resizes JPG images

SYNOPSIS

jpgresize.pl [-v] [-V] [-r] [-h] [-W <width>] [-H <height>] [-S <scale>] [--max_width=<max width>] [--max_height=<max height>] [--min_width=<min width>] [--min_height=<min height>] [-e <extenion>] [-d <directory>] <image1.jpg> [ | <image2.jpg> | ...]

DESCRIPTION

jpgresize.pl resizes a couple of JPG images simultaniously. The following parameters are available:

OPTIONS

-S scale

Scales the image. If you neither set a -S option nor a -W or -H option, the default value -S 0.3 will be used. You must not set the -S and the -W / -H options together.

-W width, -H height

Sets the new width and height in pixels. You can retain image proportions by setting either the width or the height. You can change the proportions by setting both parameters. You must not set the -S and the -W / -H options together.

--max_width=max width, --max_height=max height

Sets the maximum height and the maximum width. The image resolution will not be greater than these values unless you set a greater value with the -W or -H option.

--min_width=min width, --min_height=min height

Sets the minimum height and the minimum width. The image resolution will not be smaller than these values unless you set a smaller value with the -W or -H option.

-e extension

Sets the extension of the new images. Default is '_small' or '' in case, that the -d option is used.

-d dir

The new images will be saved in this directory.

-h

Prints a short help.

-r

Redo option. By setting this parameter all files with the extension string in the filename will be ignored.

-v

Verbose mode.

-V

Version

PREREQUISITES

This script requires the following modules:

strict
warnings
Getopt::Long 2.37
Image::Resize 0.5

SEE ALSO

Image::Resize

AUTHOR

Florian Goslich: <flo@goslich-online.de>

COPYRIGHT AND DISCLAIMER

This program is Copyright 2009 by Florian Goslich. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.