diff --git a/Classes/IDMPhotoBrowser.m b/Classes/IDMPhotoBrowser.m index 9cd39f32..c61e631e 100644 --- a/Classes/IDMPhotoBrowser.m +++ b/Classes/IDMPhotoBrowser.m @@ -574,7 +574,8 @@ - (CGRect)getToolbarButtonFrame:(UIImage *)image{ } - (UIImage*)getImageFromView:(UIView *)view { - UIGraphicsBeginImageContextWithOptions(view.bounds.size, YES, 2); + //UIGraphicsBeginImageContextWithOptions(view.bounds.size, YES, 2); + [[UIGraphicsImageRenderer alloc] initWithSize:view.bounds.size format:UIGraphicsImageRendererFormat.defaultFormat]; [view.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext();