1IMGSIZE(1) User Contributed Perl Documentation IMGSIZE(1)
2
3
4
6 imgsize - read the dimensions of an image in several popular formats
7
9 imgsize [ -r ⎪ -a ⎪ -f fmt ] file
10
12 No-brainer to size an image supplied on the command-line. All the real
13 work is done in Image::Size
14
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 num‐
32 bers, so any other formatting directives will be lost. The numbers
33 are passed as width first, then height.
34
36 Image::Size
37
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
43
44
45perl v5.8.8 2006-09-16 IMGSIZE(1)