Skip to content

Commit 6215083

Browse files
author
vrajroham
committed
Readme updated
1 parent 4dd6e94 commit 6215083

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ Many of these props are inherited from [dropzone configuration so see their doco
7474
| useCustomDropzoneOptions | Boolean | If you want to define your own dropzone config set this to true and define a dropzoneOptions.|
7575
| dropzoneOptions | Object | A custom set of rules to define your dropzone object, use anything available in the [dropzone config](http://www.dropzonejs.com/#configuration-options).|
7676
| preview-template | Function | A custom preview template which will be passed as function. See following Note |
77+
| resizeWidth | Number | If set, images will be resized to these dimensions before being uploaded. If only one, `resizeWidth` or `resizeHeight` is provided, the original aspect ratio of the file will be preserved. `Default : null` |
78+
| resizeHeight | Number | Height of image to be resized. `Default : null` |
79+
| resizeMimeType | String | The mime type of the resized image (before it gets uploaded to the server). If `null` the original mime type will be used. To force `jpeg`, for example, use `image/jpeg`. `Default : null` |
80+
| resizeQuality | Number | The quality of the resized images. `Default : null` |
81+
| resizeMethod | String | How the images should be scaled down in case both, `resizeWidth` and `resizeHeight` are provided. Can be either `contain` or `crop`. `Default : 'contain'` |
7782

7883
## Custom Dropzone preview template
7984

0 commit comments

Comments
 (0)