首页文章 工具关于 支持订阅

压缩 JPG

在不明显降低质量的情况下,将 JPEG 文件大小降低最多 80%。可调节质量,可选缩放,立即下载。100% 免费——图像始终保留在浏览器中。

JPEG 压缩原理

JPEG 压缩通过将图像划分为 8×8 像素块,并丢弃人眼最不敏感的频率信息来实现。在质量设为 85 时,大约会丢弃原始数据的 5%,但这 5% 正是人眼最不易察觉的部分。这样得到的文件大小约为原来的 3–5 倍,几乎看不出质量差异。

我应该使用什么质量设置?

  • 质量 85–90: 专业质量。适用于可打印的网页图像和产品摄影。
  • 质量 75–85: 标准网页质量。大多数网站的最佳选择——低于 90,正常观看尺寸下无可见瑕疵。
  • 质量 60–75: 强力压缩。适用于缩略图、背景图或对文件大小要求高于质量的场景。
  • 质量 40–60: 极限压缩。会出现可见瑕疵,仅适用于极小的缩略图。

JPG 与 WebP:哪个更小?

在相同质量下,WebP 文件比 JPEG 小 25–35%。如果站点支持 WebP(所有现代浏览器均支持),将 JPG 转为 WebP 而非仅压缩 JPG 可获得更佳效果。使用 JPG 转 WebP 转换器 → 来实现。

常见问题

Compressing JPG (reducing quality) keeps the JPEG format but makes the file smaller. Converting to WebP switches to a more efficient format that achieves 25–35% smaller files at equivalent quality. For web use, JPG-to-WebP gives better results. For email and non-web use where JPEG compatibility matters, compress the JPG directly.
Yes - JPEG is a lossy format, so every re-compression cycle introduces additional quality loss. This is called “generation loss.” To avoid this, always work from the original high-quality source and compress once for the intended use. Never compress, save, and re-compress the same JPEG multiple times.
Not with JPEG - it is inherently a lossy format. However, lossless JPEG optimization tools (like jpegtran) can remove metadata and optimize encoding tables without changing pixel data. For truly lossless compression, use PNG or WebP lossless mode instead.
For email attachments, target a final file size under 1 MB (most email services cap attachments at 10–25 MB, but large images slow email loading). Use quality 75–80 and resize the image to its display dimensions - there’s no need to attach a 4000×3000 photo if it will be displayed at 800×600. Quality 80 at 1200×900 pixels typically produces a 150–350 KB JPG, perfect for email.