We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec57369 commit 31d45c9Copy full SHA for 31d45c9
ios/RNCImageEditor.m
@@ -74,7 +74,7 @@ @implementation RNCImageEditor
74
// Store image
75
NSString *path = [RNCFileSystem generatePathInDirectory:[[RNCFileSystem cacheDirectoryPath] stringByAppendingPathComponent:@"ReactNative_cropped_image_"] withExtension:@".jpg"];
76
77
- NSData *imageData = UIImageJPEGRepresentation(croppedImage, 1);
+ NSData *imageData = UIImagePNGRepresentation(croppedImage);
78
NSError *writeError;
79
NSString *uri = [RNCImageUtils writeImage:imageData toPath:path error:&writeError];
80
0 commit comments