跳到主要内容
Toolioz logoToolioz

图片压缩器

按质量设置或目标大小缩小 JPEG、PNG 或 WebP 文件。图片无需上传。

本地压缩

压缩在浏览器中完成。图片不会上传。

质量或目标大小

结果依质量滑块设置而定,输入目标大小时则按目标计算。

JPEG, PNG, and WebP

可以读取 JPEG、PNG 和 WebP。下载文件为 JPEG 格式。

关于JPEG image compressor

Reads a JPEG, PNG, or WebP and saves a JPEG. A quality slider is used at full size. A target size in KB searches scale and quality, and can still miss the target.

使用方法

  • 1Choose a JPEG, PNG, or WebP file.
  • 2Set the quality slider, or enter a target size in KB.
  • 3Click Compress Image Now.
  • 4Compare the preview with the original.
  • 5Download the JPEG. The filename starts with compressed_.

主要优点

  • The image is drawn to a canvas in the browser and is not uploaded.
  • Without a target, scale stays at 1 and the slider sets JPEG quality.
  • A target can shrink the image to 10% scale and quality 0.05.
  • That fallback can still be larger than the target.
  • The saved type is image/jpeg.

常见问题

压缩使用浏览器的画布。图片不会上传。

可以压缩 JPEG、PNG 和 WebP。保存文件为 JPEG 格式。

输入 KB 目标后,会搜索可用的缩放比例和 JPEG 质量。目标远小于原文件时,可能从 50% 或 30% 比例开始搜索。若均不满足条件,将以 0.05 的质量和 10% 的比例保存 JPEG,结果仍可能超过目标。

输出由 canvas.toDataURL 生成,为有损 JPEG。下载前会显示预览。