Works with any backend npm install Zero dependencies

Image Flip

Use the static flipImage utility to flip images before adding them.

// Using the static utility
MultipleUpload.flipImage(file, true) // horizontal
MultipleUpload.flipImage(file, false) // vertical

Mirroring before the bytes leave

MultipleUpload.flipImage(file, horizontal) is a static method that resolves to a new File, flipped on a canvas. Pass true to mirror left to right, false to flip top to bottom. Because it hands back a real File, the result drops straight into the queue and uploads like anything else.

The case that actually needs it

Front-facing camera capture. Most phone camera apps show a mirrored preview but save the un-mirrored frame, so a selfie or a held-up badge arrives backwards to the person who took it. A horizontal flip puts it back the way they saw it. For a rear camera, or a photo that is merely turned, this is the wrong tool — reach for autoOrient or imageRotate.