diff --git a/src/ios/Canvas2ImagePlugin.m b/src/ios/Canvas2ImagePlugin.m index 15a0711..75792d7 100644 --- a/src/ios/Canvas2ImagePlugin.m +++ b/src/ios/Canvas2ImagePlugin.m @@ -28,7 +28,7 @@ - (void)saveImageDataToLibrary:(CDVInvokedUrlCommand*)command UIImage* image = [[[UIImage alloc] initWithData:imageData] autorelease]; ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init]; // Request to save the image to camera roll - [library writeImageToSavedPhotosAlbum:[image CGImage] orientation:ALAssetOrientationRight /*(ALAssetOrientation)[image imageOrientation]*/ completionBlock:^(NSURL *assetURL, NSError *error){ + [library writeImageToSavedPhotosAlbum:[image CGImage] orientation:ALAssetOrientationUp /*(ALAssetOrientation)[image imageOrientation]*/ completionBlock:^(NSURL *assetURL, NSError *error){ if (error) { // Show error message... NSLog(@"ERROR: %@",error);