Resizer.imageFileResizer(
file, //is the file of the new image that can now be uploaded...
maxHeight, // is the maxHeight of the new image
maxWidth, // is the maxWidth of the new image
I've tested with 800,1000 and got an image which is width = 1000. Then I tested with 1000,800, and correctly got an image which is width = 800.
Thanks for this excellent library, using it live here. https://www.nextelection.com/home
I think the param order should be:
Resizer.imageFileResizer( file, //is the file of the new image that can now be uploaded... maxHeight, // is the maxHeight of the new image maxWidth, // is the maxWidth of the new image
I've tested with 800,1000 and got an image which is width = 1000. Then I tested with 1000,800, and correctly got an image which is width = 800.