VIPS(1)
π¦ 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 classBASE-NAME. andBASE-NAMEcan be a full vips class name or a nickname, whichever you vibe with.
and if you don't supplyBASE-NAMEat all? it lists all classes belowVipsOperation. go off, queen π
-p PLUGIN,--plugin=PLUGINβ Load PLUGIN. also heads up bestie, plugins sitting in$VIPSHOME/lib/vips-plugins-MAJOR.MINORare 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 exampleadd. 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 π
π COPYRIGHT π
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 π¦β¨
π¦ where this page comes from
- alpine 3.24: vips-doc 8.18.2-r0 Β· LGPL-2.1-or-later
- arch rolling: libvips 8.18.7-1 Β· LGPL-2.1-or-later
- debian bookworm: libvips-tools 8.14.1-3+deb12u2 Β· LGPL-2.1-only
- debian bookworm: libvips-tools 8.14.1-3+deb12u3 Β· LGPL-2.1-only
- debian trixie: libvips-tools 8.16.1-1+deb13u1 Β· LGPL-2.1-only
- debian trixie: libvips-tools 8.16.1-1+deb13u2 Β· LGPL-2.1-only
- fedora 43: vips-tools 8.16.1-1.fc43 Β· LGPL-2.1-or-later
- fedora 43: vips-tools 8.18.3-2.fc43 Β· LGPL-2.1-or-later
- fedora 44: vips-tools 8.18.0-6.fc44 Β· LGPL-2.1-or-later
- fedora 44: vips-tools 8.18.3-2.fc44 Β· LGPL-2.1-or-later
- nixpkgs unstable: vips 8.18.7
- ubuntu noble: libvips-tools 8.15.1-1.1build4 Β· LGPL-2.1-only
- ubuntu questing: libvips-tools 8.16.1-1
- ubuntu resolute: libvips-tools 8.18.0-1build1 Β· LGPL-2.1-only
- ubuntu stonking: libvips-tools 8.18.5-1 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms