图片高级压缩
Last updated
2023-07-17 11:05:41
{"value":"\u63d0\u4f9b\u56fe\u7247\u9ad8\u7ea7\u538b\u7f29\u529f\u80fd\uff0c\u53ef\u4ee5\u66f4\u52a0\u9ad8\u6548\u5730\u5c06\u56fe\u7247\u8f6c\u5316\u4e3a `HEIF\u9ad8\u538b\u7f29\u6bd4\u683c\u5f0f`\u3002\n\n- HEIF \u80fd\u591f\u5927\u5e45\u8282\u7701\u5e26\u5bbd\uff0c\u5f97\u76ca\u4e8e\u5176\u51fa\u8272\u7684\u538b\u7f29\u6548\u7387\uff1a\u65e2\u4e0d\u964d\u4f4e\u56fe\u7247\u7684\u753b\u8d28\uff0c\u540c\u65f6\u5927\u5e45\u964d\u4f4e\u56fe\u7247\u7684\u4f53\u79ef\u3002\n- \u964d\u4f4e\u4f53\u79ef\u540e\u7684\u56fe\u7247\u4e5f\u6709\u5229\u4e8e\u52a0\u5feb\u7f51\u7ad9\u6253\u5f00\u901f\u5ea6\uff0c\u63d0\u5347\u7528\u6237\u4f53\u9a8c\u3002\n- \u76ee\u524d IOS 11\u4ee5\u4e0a\u53ca Android P \u7cfb\u7edf\u5df2\u539f\u751f\u652f\u6301HEIF\u683c\u5f0f\u3002\u60a8\u53ef\u4ee5\u6839\u636e\u5ba2\u6237\u7aef\u7c7b\u578b\u7075\u6d3b\u9009\u62e9\u56fe\u7247\u683c\u5f0f\uff0c\u6709\u6548\u538b\u7f29\u6210\u672c\u3002\n\n### **\u4f7f\u7528\u9650\u5236**\n\n- \u56fe\u7247\u6587\u4ef6\u65e0\u5927\u5c0f\u9650\u5236\n- \u5904\u7406\u540e\u7684\u56fe\u7247w\u548ch\u53c2\u6570\u4e0d\u80fd\u8d85\u8fc79999\u50cf\u7d20, \u603b\u50cf\u7d20\u4e0d\u80fd\u8d85\u8fc7 1920000 \u50cf\u7d20\n- \u5904\u7406\u524d\u7684\u56fe\u7247`w`\u548c`h`\u53c2\u6570\u4e0d\u80fd\u8d85\u8fc73\u4e07\u50cf\u7d20\uff0c\u603b\u50cf\u7d20\u4e0d\u80fd\u8d85\u8fc71.5\u4ebf\u50cf\u7d20\n- \u539f\u56fe\u4e3a HEIF \u7684\u8bf7\u6c42\uff0c\u5047\u5982\u4e0d\u660e\u786e\u6307\u5b9a\u8f93\u51fa\u683c\u5f0f\u4e3a heic\uff0c \u5219\u4f1a\u8f93\u51fa\u4e3ajpg\uff0c\u5c06\u4e0d\u4f1a\u6309\u56fe\u7247\u9ad8\u7ea7\u538b\u7f29\u6765\u6536\u8d39\n- \u56fe\u7247\u9ad8\u7ea7\u538b\u7f29\u529f\u80fd\uff0c\u76ee\u524d\u53ea\u80fd\u4ee5 \u6301\u4e45\u5316\u5904\u7406\u5f62\u5f0f\u6765\u4f7f\u7528\n\n### **\u63a5\u53e3\u89c4\u683c**\n\n\u5f53\u4f7f\u7528 **\u57fa\u672c\u56fe\u7247\u5904\u7406\u3001\u56fe\u7247\u9ad8\u7ea7\u5904\u7406\u3001\u56fe\u7247\u6c34\u5370\u5904\u7406** \u65f6, \u6307\u5b9a\u8f93\u51fa\u683c\u5f0f\u4e3a `HEIF`:\n\n```\n imageView2\/<mode>\/format\/heif\/...\n imageMogr2\/format\/heif\/...\n watermark\/<1..4>\/format\/heif\/... \/\/ 1..4 \u8868\u793a\u6c34\u5370mode 1 2 3 4 \u53ef\u4ee5\u4f7f\u7528 5 6 \u4e0d\u80fd\u4f7f\u7528\n```\n\n### \u538b\u7f29\u7387\u6bd4\u5bf9\n\n\u4e0b\u8868\u5217\u51fa\u4e86 JPG \u539f\u56fe\u548c\u8f6c\u5316\u6210 HEIF \u56fe\u7247\u7684\u5927\u5c0f\u3002\u4ece\u8868\u4e2d\u53ef\u4ee5\u770b\u51fa\uff0cHEIF \u683c\u5f0f\u56fe\u7247\u5177\u6709\u8d85\u9ad8\u7684\u538b\u7f29\u7387\uff0c\u80fd\u591f\u5927\u5e45\u8282\u7701\u5e26\u5bbd\u3002\n\n| \u683c\u5f0f | \u5206\u8fa8\u7387 | \u5927\u5c0f |\n| ---- | --------- | ------------------ |\n| \u539f\u56fe | 640 x 427 | 209k |\n| HEIF | 640 x 427 | 75k\uff08\u538b\u7f29\u738764%\uff09 |\n| HEIF | 200 x 200 | 20k\uff08\u538b\u7f29\u738790.4%\uff09 |"}