Excel:...::Image(3pm)
πΈ Excel::Template::Element::Image β bestie edition π
okay so welcome to Excel::Template::Element::Image, a lil Perl module from the Excel::Template::Element family, straight out of the User Contributed Perl Documentation. it's here to do one thing and one thing only: put a picture into your worksheet. that's it. that's the gig. π
β¨ NAME β¨
Excel::Template::Element::Image β yeah that's the whole name, it said what it said π
π― PURPOSE π―
to insert an image into the worksheet. that's the entire mission statement, no notes, iconic behavior π¦
π·οΈ NODE NAME π·οΈ
IMAGE
that's the node name you write in your template. lowercase in your XML, all-caps in the docs, iykyk π
π INHERITANCE π
ELEMENT
it inherits from ELEMENT, so it's giving nepo baby but in a cute way π
β‘ EFFECTS β‘
this will consume one column in the current row. one column. that's the toll, that's the price of admission, pay up bestie π«Ά
π¦ DEPENDENCIES π¦
None. zero. nada. it's self-sufficient, it's an independent queen, it doesn't need anybody β¨
π οΈ USAGE π οΈ
here's how you actually use it, and yes these are exactly the forms:
<image path="/Some/Full/Path" />
<image path="/Some/Full/Path" offset="2,5" />
<image path="/Some/Full/Path" scale="2,0.4" />
<image path="/Some/Full/Path" offset="4,0" scale="0,2" />
please see "" in Spreadsheet::WriteExcel for more info about the offset and scaling options, plus any other restrictions that might be in place. (yes, that reference is literally empty in the original β it's giving mystery, it's giving aura π)
π¨ lowkey important: this node does NOT perform any sort of validation upon your parameters. none. zero. you are assumed to know what you are doing. the module trusts you completely and that is terrifying if we're being honest π
also note that the offset and scaling values are "X,Y". you must provide both values, even if the Y value is 0. do not skip the Y, do not ghost the Y, the Y has feelings π
and if you provide a 0 value for either scaling option, "" in Spreadsheet::WriteExcel will default that to 1. so a 0 is not a 0, it's a sneaky little 1 in disguise. character development fr fr β
ποΈ AUTHOR ποΈ
Rob Kinyon (rob.kinyon@gmail.com)
shoutout Rob, thank you for your service π«‘
π SEE ALSO π
Nothing. literally nothing. no siblings, no friends, no neighbors, just vibes and an image π
and that's the whole page bestie, you ate it, you understood it, periodt π
perl v5.34.0 β dated 2022-06-13 β Excel::...::Image(3pm) and that's the footer, mwah, go insert some pictures β¨ππ¦
π¦ where this page comes from
- debian bookworm: libexcel-template-perl 0.34-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libexcel-template-perl 0.34-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libexcel-template-perl 0.34-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libexcel-template-perl 0.34-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libexcel-template-perl 0.34-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms