add max option #18

This commit is contained in:
Pierre Inglebert
2014-05-19 20:16:28 +02:00
parent 308d1971d8
commit 88edad3fae
4 changed files with 48 additions and 3 deletions

View File

@@ -143,6 +143,10 @@ Scale to `width` x `height`. By default, the resized image is cropped to the exa
Crop the resized image to the exact size specified, the default behaviour.
### max()
Preserving aspect ratio, resize the image to the maximum width or height specified.
### embedWhite()
Embed the resized image on a white background of the exact size specified.