Works with any backend npm install Zero dependencies

Image Rotate

Rotate every uploaded image by a fixed number of degrees.

new MultipleUpload('#demo', {
 accept: 'image/*',
 imageRotate: 90
});

Rotation applied before upload

imageRotate defaults to 0. Given a non-zero value it rotates every selected image by that many degrees on a canvas and uploads the rotated result, so the server never receives the original orientation.

This is not the same as EXIF auto-orient

A phone photo is usually stored upright with an EXIF orientation tag telling the viewer to turn it; software that ignores the tag shows it sideways. That is what autoOrient fixes, and it is the option you want for camera uploads. imageRotate is a fixed, unconditional rotation for cases where the input is known to be turned — a document scanner that always feeds landscape, for instance. Using it on camera-roll photos rotates the already-correct ones too.