Have situation, when need to downsample copy of taken picure from camera.
For Image Resizer have provide width and height, so have get it from newly saved photo.
Saw lots suggestions with new Image() and read properties width and height, but problem is, it not decide image orientation and all time provide bigger dimension for X abd smaller for Y.
If use correctOrientation: true, it just does vicewersa, X getting smaller dimension, Y - bigger.
I played with device and screen orientations, to get real device position at camera shot moment, it useless, because between camera ON and OFF, orientation not accessible, and user can rotate device as wish.
Also tried exif-js to read exif info, it also provide wrong info.
Does anybody know way how to decide correct axis dimensions/orientation of saved from camera image?