ODFIMGIMPORT(1)

πŸ“¦ version 1.4.2, in opensuse-leap 16.0

πŸ’… odfimgimport(1) β€” like, the manual page, bestie

Okay so welcome to odfimgimport β€” it lives in the User commands section of your friendly neighbourhood manual, and honestly? It's giving "tiny script, massive save." Let's get into it. πŸ¦‹


✨ NAME ✨

odfimgimport β€” import external images. That's it, that's the whole vibe. πŸŽ€


✨ SYNOPSIS ✨

odfimgimport [-q] [-o outputfile] [inputfile]

🌸 DESCRIPTION 🌸

So picture this, bestie: you're copy-pasting HTML from your web browser straight into your word processor. Everything looks cute and normal… except the pictures in that pasted text are still loading from the Internet. Not it. πŸ™ˆ

This script will import all the images into the OpenDocument file. Iconic behaviour, honestly. πŸ’–

If you don't provide an inputfile, the program will read from stdin. And here's the little caveat you need to know: if the program reads from stdin, it might not know how to resolve relative filenames. So, like, keep that in mind. 😭

If you don't provide an outputfile, the program will import the pictures into the input file. Slay, in-place editing. ✨


πŸ’… OPTIONS πŸ’…

  • -q β€” if there are images that can't be imported, odfimgimport will write out how many have failed. The -q flag will prevent that. So it's the "don't tell me, I don't wanna know" flag. 🫢
  • -v β€” verbose, bestie! Prints the URL of every image it tries to import and the result. Main character transparency. πŸ‘‘
  • -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, writing to newfile.odt, reading from oldfile.odt. Periodt. πŸ”₯


🌈 AUTHOR 🌈

SΓΈren Roug β€” Original author. We stan. πŸ’œ


Okay that's the whole page, bestie! And for the cute sign-off: this little icon comes from odfpy, dated 01/04/2009 β€” yes, she's vintage, and she still ate. πŸ“πŸ§šβ­

πŸ“¦ where this page comes from