Skip to content

Commit

Permalink
Improved jsdocs for withoutEnlargement and sequentialRead #972 (#992)
Browse files Browse the repository at this point in the history
  • Loading branch information
adbugger authored and lovell committed Oct 15, 2017
1 parent bbe897e commit aad16ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,9 @@ function limitInputPixels (limit) {
/**
* 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.
*
* The default behaviour *before* function call is `false`, meaning the libvips access method is not sequential.
*
* @param {Boolean} [sequentialRead=true]
* @returns {Sharp}
*/
Expand Down
3 changes: 3 additions & 0 deletions lib/resize.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
* This is equivalent to GraphicsMagick's `>` geometry option:
* "*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]
* @returns {Sharp}
*/
Expand Down

0 comments on commit aad16ac

Please sign in to comment.