PNG 图片是比较常见的图片类型,倡萌一直以来都将发布到网站的图片保存为 PNG 格式,在保证图片清晰度的同时,也尽可能减少图片的体积。如果你也一样大多使用 PNG 格式的图片,可以使用 Compress PNG for WP 插件自动压缩图片。
在后台搜索 Compress PNG for WP 或者 在此下载,启用后,访问 后台 – 设置 – 多媒体,就可以看到如下选项:

它是使用 tinypng.com 的API来压缩PNG图片的,需要填写 API 密钥,访问 https://tinypng.com/developers 填写邮箱地址免费获取 API :

点击收到的邮件的验证地址,然后就可以看到免费的 API:

需要注意的是,免费 API 每个月只能处理 500 张 PNG 图片,如果你要处理更多,只能购买他们的收费服务了。
你还可以试试:WP Smush.it 无损压缩网站图片
来源:
https://www.wpdaxue.com/compress-png-for-wp.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_33689.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57