// 免费在线工具
网站图像尺寸压缩器
在上传到网站、博客或 CMS 之前压缩图像文件大小。转换为 WebP,设置合适尺寸,并压缩至理想质量。免费、即时、私密。
为什么要在上传到网站前压缩图像?
大多数 CMS 平台(WordPress、Squarespace、Webflow、Ghost、Wix)都有最大上传尺寸限制,且上传的图像不一定会被可靠优化。即使插件处理了尺寸调整,原始大文件往往仍被存储,且相机的 EXIF 数据会为每张照片增加数百 KB。提前预优化图像可让你完全掌控质量、格式和尺寸。
常见 CMS 图像类型的推荐尺寸
- 博客文章特色图像: 1200×630 px,WebP 质量 82,目标小于 200 KB
- 正文/内联图像: 800–1000 px 宽,WebP 质量 80,目标小于 150 KB
- 主视觉/横幅: 1920×800 px,WebP 质量 85,目标小于 400 KB
- 电商产品: 800–1200 px 方形,WebP 质量 85,目标小于 250 KB
- 头像/标识: 200–400 px,WebP 或 PNG 质量 90,目标小于 50 KB
WordPress 专属技巧
WordPress 在每次上传时会生成多种图像尺寸(缩略图、中等、大图、完整)。通过在上传前预先优化为 "完整" 大小,可确保所有生成尺寸都基于更小的源文件。WebP 格式在 WordPress 5.8+ 原生支持——但仅适用于媒体库中的图像。若需转换已有上传,请使用 Imagify 或 EWWW Image Optimizer 等插件。
常见问题
WebP is the recommended format for all modern CMS platforms. WordPress 5.8+, Shopify, Webflow, Ghost, and Squarespace all support WebP uploads. WebP produces 25–35% smaller files than JPEG while maintaining equivalent quality. For platforms that don't yet support WebP uploads, use JPEG at quality 82–85.
The featured image should be 1200×630 px (the standard Open Graph dimensions) at under 200 KB in WebP. Inline article images work well at 800–1000 px wide and under 150 KB. These sizes display well at all screen sizes and load quickly even on slow mobile connections. Use the resize inputs in this tool to hit those dimensions precisely.
Yes - a CDN improves delivery speed by serving files from geographically closer servers, but it doesn't change the file size. A 2 MB unoptimized image served from a CDN still transfers 2 MB to the user. CDN + optimized images is the correct combination for maximum performance.
CMS auto-resizing handles dimensions but usually doesn't change the format or apply aggressive compression. Even with auto-resizing enabled, pre-optimizing to WebP format before upload typically results in 30–50% smaller files than the CMS-generated versions. The best performance comes from providing the CMS with an already-optimized WebP source.