diff --git a/ios/CreateThumbnail.m b/ios/CreateThumbnail.m index ebdca55..b1ce808 100644 --- a/ios/CreateThumbnail.m +++ b/ios/CreateThumbnail.m @@ -28,7 +28,7 @@ @implementation CreateThumbnail UIImage *thumbnail = [UIImage imageWithData:imageData]; resolve(@{ @"path" : fullPath, - @"size" : [NSNumber numberWithFloat: data.length], + @"size" : [NSNumber numberWithFloat: imageData.length], @"mime" : [NSString stringWithFormat: @"image/%@", format], @"width" : [NSNumber numberWithFloat: thumbnail.size.width], @"height" : [NSNumber numberWithFloat: thumbnail.size.height]