Commit 5e4476e0 authored by David黄金龙's avatar David黄金龙

图片 压缩到 5M

parent 7b50b714
...@@ -172,7 +172,7 @@ class YHNetRequest: NSObject { ...@@ -172,7 +172,7 @@ class YHNetRequest: NSObject {
} }
// guard let imageData = image.jpegData(compressionQuality: 1) else { return httpRequest } // guard let imageData = image.jpegData(compressionQuality: 1) else { return httpRequest }
guard let imageData = image.compressOriginalImage(4 * 1024 * 1024) else { return httpRequest } guard let imageData = image.compressOriginalImage(5 * 1024 * 1024) else { return httpRequest }
let tttt = Double(imageData.count)/1024.0/1024.0 let tttt = Double(imageData.count)/1024.0/1024.0
#if DEBUG #if DEBUG
......
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