Class: ExifOrientationOperation

PhotoEditorSDK.Operations. ExifOrientationOperation

An operation that can rotate and flip an image depending on the given EXIF information

new PhotoEditorSDK.Operations.ExifOrientationOperation()

sdk/core/operations/exif-orientation-operation.js, line 28

Extends

  • PhotoEditorSDK.Operation

Members

staticPhotoEditorSDK.Operations.ExifOrientationOperation.identifierString

A unique string that identifies this operation. Can be used to select operations.

Default Value:
  • exif-orientation

Methods

applyTo(image){Canvas}

sdk/core/operations/exif-orientation-operation.js, line 140

Applies the necessary rotation/flip to the image and returns a new canvas with the corrected image

Name Type Description
image Image
Returns:
Type Description
Canvas

getNewDimensions(dimensions){PhotoEditorSDK.Math.Vector2}

sdk/core/operations/exif-orientation-operation.js, line 125

Returns the dimensions the given dimensions will have after this operation has been applied

Name Type Description
dimensions PhotoEditorSDK.Math.Vector2
Returns:
Type Description
PhotoEditorSDK.Math.Vector2