VIPSEDIT(1)
β¨ VIPSEDIT β¨
okay bestie, so vipsedit is a General Commands Manual girlie and she's here to help you mess with the header of a vips image file π
πΈ NAME πΈ
vipsedit β edit header of a vips image file π
π¦ SYNOPSIS π¦
vipsedit [OPTION...] vipsfile
π DESCRIPTION π
so like, vipsedit alters a VIPS image file's header. it's giving "i just need to change one little thing" energy β¨ β super useful for setting the resolution, for example. no cap.
The options are:
-x,--xsize=Nβ set Xsize to N π«-y,--ysize=Nβ set Ysize to N π«-b,--bands=Nβ set Bands to N π«-f,--format=Fβ set BandFmt to F (eg.uchar) π«-i,--interpretation=Iβ set Interpretation to I (eg.xyz) π«-c,--coding=Cβ set Coding to C (eg.labq) π«-X,--xres=Rβ set Xres to R pixels/mm π«-Y,--yres=Rβ set Yres to R pixels/mm π«-u,--xoffset=Nβ set Xoffset to N π«-v,--yoffset=Nβ set Yoffset to N π«-e,--setextβ replace extension block with stdin π«
π¨ OKAY BESTIE LISTEN UP π¨ be very careful when changing Xsize, Ysize, BandFmt or Bands. vipsedit does no checking! like... none. zero. she is not your bodyguard, she is your accomplice π
π EXAMPLES π
To set the Xsize to 512 and Bands to 6:
vipsedit --xsize=512 --bands=6 fred.v
or
vipsedit -x 512 -b 6 fred.v
Extract the XML metadata from an image with vipsheader(1), edit it, and reattach with vipsedit(1).
vipsheader -f getext fred.v | sed s/banana/pineapple/ | vipsedit -e fred.v
like... banana β‘οΈ pineapple?? that's the pipeline of the century fr fr πβ¨
π RETURN VALUE π
returns 0 on success and non-zero on error. simple as that, periodt π
π SEE ALSO π
π COPYRIGHT π
K. Martinez 1993
okay that's the whole vibe, bestie β go forth and edit those headers responsibly π«Ά
this iconic little page comes to you from the General Commands Manual, dated 30 June 1993 (yes, she's vintage, she's a classic, she ate and left no crumbs πΈ), and this whole manual page is the VIPSEDIT(1) moment β¨ππ§
π¦ 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 jammy: libvips-tools 8.12.1-1build1
- 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