// 免费在线工具
为 WordPress 优化图像
在上传到 WordPress 之前将图像转换并压缩为 WebP。提升 Core Web Vitals、Largest Contentful Paint 和 PageSpeed Insights 分数。100% 免费——无需插件,亦无需上传到服务器。
2025 年的 WordPress 图像优化
Google 的 Core Web Vitals 直接影响 WordPress 的搜索排名。Largest Contentful Paint(LCP)——最大可见元素加载所需的时间——通常是图像。要通过 LCP 阈值(< 2.5 秒),您的主图和特色图像必须体积小、编码高效,并使用正确的缓存头。将图像转换为质量 80 的 WebP 并按实际显示宽度裁剪,是最快达成目标的方式。
WordPress 推荐的图像规格
- 博客特色图像: 1200×630px WebP,质量 80——约 60–150KB
- 主图/横幅: 1920×600px WebP,质量 75——约 80–200KB
- 文章内图像: 宽度 800–1200px 的 WebP,质量 82
- WooCommerce 商品图像: 1000×1000px WebP,质量 85——纯白背景压缩效果极佳
- 作者/团队头像: 300×300px WebP,质量 80
无插件 WebP 工作流
自 WordPress 5.8 起,您可以直接上传 .webp 文件,无需任何插件。使用本工具先优化图像:压缩 → 下载 .webp 文件 → 上传到 WordPress 媒体库 → 插入文章。无需服务器端处理,无月费,无插件冲突。
常见问题
Yes - WordPress 5.8 (released July 2021) added native WebP support. You can upload .webp files directly to the Media Library and use them in posts, pages, and theme templates just like JPEG or PNG. All modern browsers (Chrome, Firefox, Safari 14+, Edge) display WebP correctly.
WordPress automatically generates multiple sizes from each uploaded image. Upload images at their maximum display width - typically 1200px for blog posts and 1920px for full-width hero images. The source image should be at the largest size you’ll ever need, pre-compressed for the largest size and then let WordPress generate smaller crops.
Image optimization is consistently the highest-impact action for improving PageSpeed scores. Unoptimized images on a WordPress site often account for 60–80% of total page weight. Converting to WebP at quality 80 and sizing to display dimensions can reduce Largest Contentful Paint (LCP) by 50–70%, significantly improving Core Web Vitals.
If you pre-optimize images before uploading (using this tool), you don’t need a plugin for compression. However, plugins also handle lazy loading, responsive srcset generation, and CDN delivery. For a plugin-free workflow: compress here, upload pre-optimized files, and use a caching plugin for proper Cache-Control headers.