{
    "content": [
        {
            "type": "text",
            "text": "# WWW::Mechanize::Image (perldoc)\n\n## NAME\n\nWWW::Mechanize::Image - Image object for WWW::Mechanize\n\n## SYNOPSIS\n\nImage object to encapsulate all the stuff that Mech needs\n\n## Sections\n\n- **NAME**\n- **VERSION**\n- **SYNOPSIS**\n- **Constructor**\n- **Accessors**\n- **SEE ALSO**\n- **AUTHOR**\n- **COPYRIGHT AND LICENSE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "WWW::Mechanize::Image",
        "section": "",
        "mode": "perldoc",
        "summary": "WWW::Mechanize::Image - Image object for WWW::Mechanize",
        "synopsis": "Image object to encapsulate all the stuff that Mech needs",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "Constructor",
                "lines": 14,
                "subsections": []
            },
            {
                "name": "Accessors",
                "lines": 32,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT AND LICENSE",
                "lines": 5,
                "subsections": []
            }
        ],
        "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": []
            }
        }
    }
}