mirror of
https://github.com/lovell/sharp.git
synced 2025-07-13 12:20:13 +02:00
Add mention of max() to preserve ratio in withoutEnlargement (#1077)
This commit is contained in:
parent
da5deb8177
commit
573836e2b8
@ -253,6 +253,7 @@ 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*".
|
||||
* Use with `max()` to preserve the image's aspect ratio.
|
||||
*
|
||||
* The default behaviour *before* function call is `false`, meaning the image will be enlarged.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user