Commit 18308d0f authored by yaobaizheng's avatar yaobaizheng

图片过大进行二次压缩

parent 6b477fb4
...@@ -84,10 +84,10 @@ public class PicUtils { ...@@ -84,10 +84,10 @@ public class PicUtils {
if (size >= 800 && size < 1024) { if (size >= 800 && size < 1024) {
accuracy = 0.6; accuracy = 0.6;
} }
if (size >= 1024 && size < 2048) { if (size >= 1024 && size < 1500) {
accuracy = 0.3; accuracy = 0.2;
} }
if (size >= 2048) { if (size >= 1500) {
accuracy = 0.1; accuracy = 0.1;
} }
return accuracy; return accuracy;
......
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