ODFIMGIMPORT(1)
π ODFIMGIMPORT(1) π
okay bestie, so this is odfimgimport, a lil user command that lives in section 1 of the manual, and it is literally here to import external images. yes queen, that's the whole vibe. π¦
β¨ SYNOPSIS β¨
odfimgimport [-q] [-o outputfile] [inputfile]
like, that's it. she's compact. she's efficient. she's giving main character energy in four tokens. π
πΈ DESCRIPTION πΈ
so picture this, bestie: you're out there copying and pasting html from your webbrowser straight into your word processor (we've all done it, no judgement π). the problem?? the pictures in that pasted text are still loading the images from the Internet. like, they're not yours, they're just vibing on someone else's server and your doc is pointing at them. π
this script will import all of those images into the OpenDocument file. so they're actually IN there. embedded. safe. slay. π
a few things you gotta know though:
- if you don't provide an input file, the program will read from stdin π«Ά
- if the program reads from stdin, it might not know how to resolve relative filenames. (yeah. that's the catch. iykyk. π)
- if you don't provide an output file, the program will import the pictures into the input file itself. so like, in place. heads up. β
ngl bestie, that last one means you might want a backup. just saying. π
π OPTIONS π
here come the flags, and yes there's only three, and no we're not skipping any of them, periodt.
-qβ if there are images that can't be imported,odfimgimportwill write how many has failed. the-qflag will prevent that. so it's the "shhh bestie, i don't wanna hear it" flag. π€«-vβ Verbose: prints the URL of every image it tries to import and the result. she's chatty. she's telling you everything. we love a transparent queen. π₯-ooutputfile β the file to save the output to."-"is stdout. defaults to the input file. π
π§ EXAMPLE π§
odfimgimport -v -o newfile.odt oldfile.odt
look at her go. verbose mode ON, output going to newfile.odt, reading from oldfile.odt. chef's kiss. π
π AUTHOR π
SΓΈren Roug β Original author π (we stan. thank you for your service.)
π¦ SEE ALSO π¦
(no see also section in this one, bestie β she stands alone, iconic, unbothered. π)
π and that's the whole page!! odfpy, dated 02/11/2025, straight out of the odfpy manual set. mwah. go import some images. slay. π β¨πΈ
π¦ where this page comes from
- debian trixie: python-odf-tools 1.4.2-4 Β· GPL-2.0-or-later AND Apache-2
- ubuntu resolute: python-odf-tools 1.4.2-4 Β· GPL-2.0-or-later AND Apache-2
- ubuntu stonking: python-odf-tools 1.4.2-4 Β· GPL-2.0-or-later AND Apache-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms