Skip to content

Commit ede6709

Browse files
committed
revise resample docs
see #2711
1 parent 5f7c12e commit ede6709

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

libvips/resample/resample.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
* @stability: Stable
5959
* @include: vips/vips.h
6060
*
61-
* There are three types of operation in this section.
61+
* These operations build on each other in a set of layers.
6262
*
6363
* First, vips_affine() applies an affine transform to an image. This is any
6464
* sort of 2D transform which preserves straight lines; so any combination of
@@ -79,7 +79,14 @@
7979
* vips_affine() and others to implement a general, high-quality image
8080
* resizer.
8181
*
82-
* Finally, vips_mapim() can apply arbitrary 2D image transforms to an image.
82+
* Finally, vips_thumbnail() combines load and resize in one operation, and adds
83+
* colour management and correct handling of alpha transparency. Because load
84+
* and resize happen together, it can exploit tricks like JPEG and TIFF
85+
* shrink-on-load, giving a (potentially) huge speedup. vips_thumbnail_image()
86+
* is only there for emergencies, don't use it unless you really have to.
87+
*
88+
* As a separate thing, `vips_mapim() can apply arbitrary 2D image transforms
89+
* to an image.
8390
*/
8491

8592
/**

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy