VIPS(1)

πŸ“¦
version 8.18.7 Β· 2 versions
  • 8.18.7 Β· alpine 3.24, arch rolling, debian bookworm, debian trixie, fedora 43, fedora 44, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 8.12.1 Β· ubuntu jammy
, in alpine 3.24, arch rolling, debian bookworm, debian trixie, fedora 43, fedora 44, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ¦‹ NAME πŸ¦‹

okay so this is vips β€” run vips operations from the command line. that's it, that's the whole vibe. you're in the <pink>VIPS(1)` general commands manual, bestie, and we're gonna have a time πŸ’…


✨ SYNOPSIS ✨

vips [options] [command] [command-options] [command-args]

literally that's the whole shape of it. <cyan>options</cyan> first, then your <purple>command</purple>, then that command's own options, then its args. iykyk 🫢


🌸 DESCRIPTION 🌸

so <hotpink>vips(1)</hotpink> is the VIPS universal main program. it's the main character πŸ‘‘. you can use it to:

  • run any VIPS operation straight from the command line, no cap
  • query the VIPS class hierarchy (like, snoop on the family tree 🌳)
  • maintain parts of the VIPS library

and to actually run a VIPS operation? the first argument has to be the name of the operation, and everything after that is the operation's arguments. it's giving very straightforward, we love that for us πŸ’–

for example:

$ vips invert lena.v lena2.v

see? iconic. ate. no crumbs. πŸ“


πŸ’… OPTIONS πŸ’…

  • -l BASE-NAME, --list=BASE-NAME β€” List operations below BASE-NAME. this prints a one-line summary of every single operation in vips below the class BASE-NAME. and BASE-NAME can be a full vips class name or a nickname, whichever you vibe with.
and if you don't supply BASE-NAME at all? it lists all classes below VipsOperation. go off, queen πŸŽ€
  • -p PLUGIN, --plugin=PLUGIN β€” Load PLUGIN. also heads up bestie, plugins sitting in $VIPSHOME/lib/vips-plugins-MAJOR.MINOR are loaded automatically, so you don't gotta do anything for those 🧚
  • -v, --version β€” Show VIPS version. short, sweet, slays ✨
  • -c NAME, --completion NAME β€” Print completions for NAME. tab-tab-tab your way through life 🌈

πŸ”₯ COMMANDS πŸ”₯

  • operation-name operation-arguments β€” Execute a named operation, for example add. yes that's really it, you just say the operation's name and hand it the args πŸ’œ

🌟 EXAMPLES 🌟

run a vips operation

Operation options must follow the operation name. (this is the rule, bestie, do not fight it πŸ™ˆ)

$ vips insert lena.v lena2.v out.v 0 0 --background "128 0 0"

get a "usage" message for an operation

$ vips insert
insert image @sub into @main at @x, @y
usage:
   insert main sub out x y
where:
   main         - Main input image, input VipsImage
   sub          - Sub-image to insert into main image, input VipsImage
   out          - Output image, output VipsImage
   x            - Left edge of sub in main, input gint
default: 0                  min: -100000000, max: 100000000
   y            - Top edge of sub in main, input gint
default: 0                  min: -100000000, max: 100000000
optional arguments:
   expand       - Expand output to hold all of both inputs, input
gboolean                  default: false
   background   - Colour for new pixels, input VipsArrayDouble
operation flags: sequential

look at that, it literally tells you the whole menu. <mint>self-documenting king</mint> 🫢

list all draw operations

$ vips -l draw
  VipsDraw (draw), draw operations
    VipsDrawink (drawink), draw with ink operations
      VipsDrawRect (draw_rect), paint a rectangle on an image
      VipsDrawMask (draw_mask), draw a mask on an image
      VipsDrawLine (draw_line), draw a line on an image
      VipsDrawCircle (draw_circle), draw a circle on an image
      VipsDrawFlood (draw_flood), flood-fill an area
    VipsDrawImage (draw_image), paint an image into another image
    VipsDrawSmudge (draw_smudge), blur a rectangle on an image

the <purple>indentation</purple> is the class hierarchy btw β€” it's a whole family tree and honestly? adorable 🌸


⭐ RETURN VALUE ⭐

returns 0 on success and non-zero on error. so if you get a zero, you're thriving. if you don't... <red>bestie, something went wrong</red> 😭


πŸŽ€ SEE ALSO πŸŽ€

vipsheader(1) β€” go read that one too, you're welcome πŸ’–


The National Gallery and Birkbeck College, 1989-1996.


and that's the whole page, no notes πŸ’… this little ray of sunshine came out of the General Commands Manual β€” <rainbow>VIPS(1)</rainbow> β€” dated 30 June 1993. iconic since '93, fr fr. go run some operations, bestie, you got this πŸ¦‹βœ¨