Skip to content

Instantly share code, notes, and snippets.

@masuidrive
Created July 20, 2010 07:36
Show Gist options
  • Save masuidrive/482646 to your computer and use it in GitHub Desktop.
Save masuidrive/482646 to your computer and use it in GitHub Desktop.
diff --git a/iphone/Classes/MediaModule.m b/iphone/Classes/MediaModule.m
index cf7a9ca..94acd33 100644
--- a/iphone/Classes/MediaModule.m
+++ b/iphone/Classes/MediaModule.m
@@ -1031,6 +1031,10 @@ if (![TiUtils isIOS4OrGreater]) { \
image = [editingInfo objectForKey:UIImagePickerControllerOriginalImage];
}
media = [[[TiBlob alloc] initWithImage:image] autorelease];
+ [dictionary setObject:[NSNumber numberWithFloat:image.size.width] forKey:@"width"];
+ [dictionary setObject:[NSNumber numberWithFloat:image.size.height] forKey:@"height"];
+ [dictionary setObject:[NSNumber numberWithFloat:image.imageOrientation] forKey:@"orientation"];
+
if (saveToRoll && imageWrittenToAlbum==NO)
{
UIImageWriteToSavedPhotosAlbum(image, nil, nil, NULL);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment