mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
parent
bbe897e607
commit
aad16ac50d
@ -256,6 +256,9 @@ function limitInputPixels (limit) {
|
|||||||
/**
|
/**
|
||||||
* An advanced setting that switches the libvips access method to `VIPS_ACCESS_SEQUENTIAL`.
|
* An advanced setting that switches the libvips access method to `VIPS_ACCESS_SEQUENTIAL`.
|
||||||
* This will reduce memory usage and can improve performance on some systems.
|
* This will reduce memory usage and can improve performance on some systems.
|
||||||
|
*
|
||||||
|
* The default behaviour *before* function call is `false`, meaning the libvips access method is not sequential.
|
||||||
|
*
|
||||||
* @param {Boolean} [sequentialRead=true]
|
* @param {Boolean} [sequentialRead=true]
|
||||||
* @returns {Sharp}
|
* @returns {Sharp}
|
||||||
*/
|
*/
|
||||||
|
@ -274,6 +274,9 @@ function ignoreAspectRatio () {
|
|||||||
* Do not enlarge the output image if the input image width *or* height are already less than the required dimensions.
|
* Do not enlarge the output image if the input image width *or* height are already less than the required dimensions.
|
||||||
* This is equivalent to GraphicsMagick's `>` geometry option:
|
* This is equivalent to GraphicsMagick's `>` geometry option:
|
||||||
* "*change the dimensions of the image only if its width or height exceeds the geometry specification*".
|
* "*change the dimensions of the image only if its width or height exceeds the geometry specification*".
|
||||||
|
*
|
||||||
|
* The default behaviour *before* function call is `false`, meaning the image will be enlarged.
|
||||||
|
*
|
||||||
* @param {Boolean} [withoutEnlargement=true]
|
* @param {Boolean} [withoutEnlargement=true]
|
||||||
* @returns {Sharp}
|
* @returns {Sharp}
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user