Commit f2d769b3 authored by 哈南's avatar 哈南

no message

parent bcfa14c3
......@@ -155,7 +155,7 @@
[IBTLoadingView showTextOnly:[NSString stringWithFormat:@"最多添加%.0f张照片",self.viewModel.maxPictureNumber]];
return;
}
UIImage *newImage = [image rescaleImageToPX:1080];
UIImage *newImage = [image rescaleImageToPX:540];
NSDictionary *fontDict = @{NSForegroundColorAttributeName:[UIColor yellowColor],NSFontAttributeName:[UIFont systemFontOfSize:17]};
UIImage *waterImage = [newImage imageWaterMarkWithString:self.remarkString point:CGPointMake(20, newImage.size.height - 20) attribute:fontDict];
NSString *imageName = [self saveImageToLocal:waterImage];
......@@ -181,6 +181,7 @@
//加密
NSData *newimageData = UIImageJPEGRepresentation(image, 0.5);
NSString *imageName = [ToolsManager md5Data:newimageData];
//获取沙盒目录
NSString *fullPath = [kPathDocument stringByAppendingPathComponent:imageName];
//将图片写入文件
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment