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

USAGE

9        imgsize [ -r | -a | -f fmt ] file [ 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

REQUIRED ARGUMENTS

16       imgsize expects file names on the command-line. If more than one file
17       is provided, the file name will be included in the output:
18
19           % imgsize dot.gif
20           width="16" height="16"
21           % imgsize dot.gif dash.gif
22           dot.gif: width="16" height="16"
23           dash.gif: width="32" height="8"
24

OPTIONS

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

EXIT STATUS

46       imgsize always exits
47

BUGS

49       Please report any bugs or feature requests to "bug-image-size at
50       rt.cpan.org", or through the web interface at
51       <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Image-Size>. I will be
52       notified, and then you'll automatically be notified of progress on your
53       bug as I make changes.
54

SUPPORT

56       •   RT: CPAN's request tracker
57
58           <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Image-Size>
59
60       •   AnnoCPAN: Annotated CPAN documentation
61
62           <http://annocpan.org/dist/Image-Size>
63
64       •   CPAN Ratings
65
66           <http://cpanratings.perl.org/d/Image-Size>
67
68       •   Search CPAN
69
70           <http://search.cpan.org/dist/Image-Size>
71
72       •   Project page on GitHub
73
74           <http://github.com/rjray/image-size>
75
77       Copying and distribution are permitted under the terms of the Artistic
78       License 2.0
79       (<http://www.opensource.org/licenses/artistic-license-2.0.php>) or the
80       GNU LGPL 2.1 (<http://www.opensource.org/licenses/lgpl-2.1.php>).
81

SEE ALSO

83       Image::Size
84

AUTHOR

86       Randy J. Ray "<rjray@blackperl.com>".
87
88
89
90perl v5.38.0                      2023-07-20                        IMGSIZE(1)
Impressum