1IMGSIZE(1)            User Contributed Perl Documentation           IMGSIZE(1)
2
3
4

NAME

6       imgsize - read the dimensions of an image in several popular formats
7

SYNOPSIS

9        imgsize [ -r | -a | -f fmt ] file
10

DESCRIPTION

12       No-brainer to size an image supplied on the command-line. All the real
13       work is done in Image::Size
14

OPTIONS

16       By default, the width and height are returned as attributes for an IMG
17       tag in HTML, essentially ""WIDTH=40 HEIGHT=30"". The following options
18       may be used to return alternate formats (all report width first, then
19       height):
20
21       "-r"
22           Return "raw" format data. Just the numbers separated by a single
23           space.
24
25       "-a"
26           Return a Perl-style list of attributes suitable for passing to the
27           "img()" method of the CGI module (see CGI).
28
29       "-f" fmt
30           Pass the string specified in fmt to "sprintf" and thus use it to
31           format the results to your taste. "sprintf" will be passed two
32           numbers, so any other formatting directives will be lost. The
33           numbers are passed as width first, then height.
34

SEE ALSO

36       Image::Size
37

AUTHOR

39       Randy J. Ray <rjray@blackperl.com>. Copyright (c) 2000. Distributable
40       under the Artistic License as packaged with Perl version 5.005 and
41       later.
42

LICENSE

44       Copying and distribution are permitted under the terms of the Artistic
45       License 2.0
46       (http://www.opensource.org/licenses/artistic-license-2.0.php
47       <http://www.opensource.org/licenses/artistic-license-2.0.php>) or the
48       GNU LGPL 2.1 (http://www.opensource.org/licenses/lgpl-2.1.php
49       <http://www.opensource.org/licenses/lgpl-2.1.php>).
50
51
52
53perl v5.12.0                      2010-05-02                        IMGSIZE(1)
Impressum