function requiresOrientationChange(orientation, autoOrientation) {
    return (
      orientation !== autoOrientation &&
      ((orientation === 1 && autoOrientation > 1 && autoOrientation < 9) ||
        (orientation > 1 && orientation < 9))
    )
  }
Determines if the image requires an orientation change.

@param {number} [orientation] Defined orientation value
@param {number} [autoOrientation] Auto-orientation based on Exif data
@returns {boolean} Returns true if an orientation change is required