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, odfimgimport will write how many has failed. the -q flag 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. πŸ”₯
  • -o outputfile β€” 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