{
    "mode": "man",
    "parameter": "imgsize",
    "section": "1p",
    "url": "https://www.chedong.com/phpMan.php/man/imgsize/1p/json",
    "generated": "2026-10-14T17:39:37Z",
    "sections": {
        "NAME": {
            "content": "imgsize - read the dimensions of an image in several popular formats\n",
            "subsections": []
        },
        "USAGE": {
            "content": "imgsize [ -r | -a | -f fmt ] file [ file ... ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "No-brainer to size an image supplied on the command-line. All the real work is done in\nImage::Size.\n",
            "subsections": []
        },
        "REQUIRED ARGUMENTS": {
            "content": "imgsize expects file names on the command-line. If more than one file is provided, the file\nname will be included in the output:\n\n% imgsize dot.gif\nwidth=\"16\" height=\"16\"\n% imgsize dot.gif dash.gif\ndot.gif: width=\"16\" height=\"16\"\ndash.gif: width=\"32\" height=\"8\"\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "By default, the width and height are returned as attributes for an IMG tag in HTML,\nessentially \"width=\"40\" height=\"30\"\" or similar. The following options may be used to return\nalternate formats (all report width first, then height):\n\n\"-r\"\nReturn \"raw\" format data. Just the numbers separated by a single space.\n\n\"-a\"\nReturn  a Perl-style list of attributes suitable for passing to the \"img()\" method of the\nCGI module (see CGI).\n\n\"-f\" fmt\nPass the string specified in fmt to \"sprintf\" and thus use it to format  the  results  to\nyour taste. \"sprintf\" will be passed two numbers, so any other formatting directives will\nbe lost. The numbers are passed as width first, then height.\n",
            "subsections": []
        },
        "EXIT STATUS": {
            "content": "imgsize always exits\n",
            "subsections": []
        },
        "BUGS": {
            "content": "Please report any bugs or feature requests to \"bug-image-size at rt.cpan.org\", or through the\nweb  interface  at  <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Image-Size>.  I  will  be\nnotified, and then you'll automatically be notified  of  progress  on  your  bug  as  I  make\nchanges.\n",
            "subsections": []
        },
        "SUPPORT": {
            "content": "•   RT: CPAN's request tracker\n\n<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Image-Size>\n\n•   AnnoCPAN: Annotated CPAN documentation\n\n<http://annocpan.org/dist/Image-Size>\n\n•   CPAN Ratings\n\n<http://cpanratings.perl.org/d/Image-Size>\n\n•   Search CPAN\n\n<http://search.cpan.org/dist/Image-Size>\n\n•   Project page on GitHub\n\n<http://github.com/rjray/image-size>\n",
            "subsections": []
        },
        "LICENSE AND COPYRIGHT": {
            "content": "Copying  and  distribution  are  permitted  under  the  terms  of  the  Artistic  License 2.0\n(<http://www.opensource.org/licenses/artistic-license-2.0.php>)   or   the   GNU   LGPL   2.1\n(<http://www.opensource.org/licenses/lgpl-2.1.php>).\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Image::Size\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Randy J. Ray \"<rjray@blackperl.com>\".\n\nperl v5.36.0                                 2022-10-13                                  IMGSIZE(1p)",
            "subsections": []
        }
    },
    "summary": "imgsize - read the dimensions of an image in several popular formats",
    "flags": [],
    "examples": [],
    "see_also": []
}