@nextcloud/image-editor
    Preparing search index...

    Function rotateOrientation

    • The orientation a picture has after the viewer turns it a quarter.

      A turn composes with what the file already says rather than replacing it, so a mirrored picture stays mirrored and four turns the same way come back to the start. Quarter turns commute with each other but not with the mirror, which is why only the turn count moves here.

      Parameters

      • orientation: Orientation

        what the file says now

      • turn: "left" | "right"

        which way the picture is being turned on screen

      Returns Orientation