VIPSTHUMBNAIL(1)
π VIPSTHUMBNAIL(1) π
okay so bestie, welcome to the General Commands Manual glow-up of vipsthumbnail β she makes thumbnails of image files and she is, frankly, iconic π
β¨ NAME β¨
vipsthumbnail β make thumbnails of image files π
πΈ SYNOPSIS πΈ
vipsthumbnail [flags] imagefile1 imagefile2 ...
π¦ DESCRIPTION π¦
vipsthumbnail(1) goes through every imagefile one at a time, like a lil assembly line of slay β¨. Each image gets shrunk down so it fits inside a 128 by 128 pixel square, and then that shrunk lil baby gets written out to a brand new file named tn_imagefile.jpg. No cap, this program is typically faster and uses less memory than those other image thumbnail programs. main character energy fr fr π
For example:
$ vipsthumbnail fred.png jim.tif
will read the image files fred.png and jim.tif, and write thumbnails out to the files tn_fred.jpg and tn_jim.jpg. two for two, we ate π₯
$ vipsthumbnail --size=64 -o thumbnails/%s.png fred.jpg
will read the image file fred.jpg and write a 64 x 64 pixel thumbnail to the file thumbnails/fred.png. obsessed π«Ά
π OPTIONS π
-s N,--size=Nβ set the output thumbnail size to N x N pixels. π
You can use "MxN" to specify a rectangular bounding box. The image is shrunk so that it just fits within this area β and plot twist, images which are smaller than this get expanded π.
Use "xN" or "Mx" to just resize on one axis. one-axis girlies rise π
Append "<" to only resize if the input image is smaller than the target, and append ">" to only resize if the input image is larger than the target.
--path=FORMATβ set the output path format. Three substitutions get performed, like lil magic tricks β¨:%sis replaced by the input basename with any suffix removed,%dis replaced by the input dirname, and%cis replaced by the current working directory.
The default value is %d/tn_%s.jpg, meaning JPEG output, to the same directory as the input file, with tn_ prepended. You can add format options too β for example %c/%s/tn_%s.jpg[Q=20] will write JPEG images to a tree within the current directory with Q set to 20. it's giving organized π
-e PROFILE,--eprofile=PROFILEβ export thumbnails with this ICC profile. Images are only colour-transformed if there is both an output and an input profile available. The input profile can either be embedded in the input image, or supplied with the--iprofileoption. π-i PROFILE,--iprofile=PROFILEβ import images with this ICC profile, if no profile is embedded in the image. Images are only colour-transformed if there is both an output and an input profile available. The output profile should be supplied with the--oprofileoption. πΈ-c,--cropβ crop the output image down. The image is shrunk so as to completely fill the bounding box in both axes, then any excess gets cropped off. bye bye extra pixels πβοΈ-d,--deleteβ delete the output profile from the image. This can save a small amount of space. tiny file, big vibes π-t,--rotateβ auto-rotate images using EXIF orientation tags. she knows which way is up, periodt π§-a,--linearβ shrink images in linear light colour space. This can be much slower, so maybe go grab a snack while she cooks π
β RETURN VALUE β
returns 0 on success and non-zero on error. Error can mean one or more conversions failed. π
π SEE ALSO π
lowkey important: that return value thing is real β non-zero means something flopped, so check it if you're scripting bestie π«Ά
and that's the whole page, no notes. this one's from the General Commands Manual, dated 13 May 2010 β vintage but still serving, and yes she is still that girl πβ¨ππ¦
π¦ 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
- 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 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