Take a picture not bigger than XxY (Native Camera)

I am using this plugin: https://ionicframework.com/docs/v2/native/camera/ to get an image from camera/photo-library
Uploading those images take a long time, and I was wondering if there is an option to set a maxHeight and maxWidth for the image, for example 1000x1000, so the image ratio stays whatever it is, and the image compresses to that resolution as for example:
1920x1080 => 1000x562
1080x1920 => 562x1000

Hi,

for this you can use the Image-Resize plugin:

Rudolf

Thanks! It seems I will need to calculate the dimensions myself, but that’s no big problem.