{
    "mode": "perldoc",
    "parameter": "WWW::Mechanize::Image",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/WWW%3A%3AMechanize%3A%3AImage/json",
    "generated": "2026-06-11T12:27:14Z",
    "synopsis": "Image object to encapsulate all the stuff that Mech needs",
    "sections": {
        "NAME": {
            "content": "WWW::Mechanize::Image - Image object for WWW::Mechanize\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 2.06\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "Image object to encapsulate all the stuff that Mech needs\n",
            "subsections": []
        },
        "Constructor": {
            "content": "new()\nCreates and returns a new \"WWW::Mechanize::Image\" object.\n\nmy $image = WWW::Mechanize::Image->new( {\nurl    => $url,\nbase   => $base,\ntag    => $tag,\nname   => $name,     # From the INPUT tag\nheight => $height,   # optional\nwidth  => $width,    # optional\nalt    => $alt,      # optional\nattrs  => $attrref, # optional\n} );\n",
            "subsections": []
        },
        "Accessors": {
            "content": "$image->url()\nImage URL from the \"src\" attribute of the source tag.\n\nMay be \"undef\" if source tag has no \"src\" attribute.\n\n$image->base()\nBase URL to which the links are relative.\n\n$image->name()\nName for the field from the NAME attribute, if any.\n\n$image->tag()\nTag name (either \"image\" or \"input\")\n\n$image->height()\nImage height\n\n$image->width()\nImage width\n\n$image->alt()\nALT attribute from the source tag, if any.\n\n$image->attrs()\nHash ref of all the attributes and attribute values in the tag.\n\n$image->URI()\nReturns the URL as a URI::URL object.\n\n$image->urlabs()\nReturns the URL as an absolute URL string.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "WWW::Mechanize and WWW::Mechanize::Link\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Andy Lester <andy at petdance.com>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This software is copyright (c) 2004 by Andy Lester.\n\nThis is free software; you can redistribute it and/or modify it under the same terms as the Perl\n5 programming language system itself.\n",
            "subsections": []
        }
    },
    "summary": "WWW::Mechanize::Image - Image object for WWW::Mechanize",
    "flags": [],
    "examples": [],
    "see_also": []
}