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

批量图像压缩器

一次性选择多张图片并统一压缩。为整批图片设置统一的质量等级,转换为 WebP,并下载每个结果。100% 免费——您的图片永不离开浏览器。

批量压缩对网站的重要性

页面上单张未优化的图片会增加 1–5 MB 的下载量。20 张此类图片的产品画廊会增加 20–100 MB——足以触发 Google Core Web Vitals 处罚,并导致移动用户离开。批量压缩让您在几分钟内处理整个产品目录、博客文章库或作品集,而无需一次只优化一张图片。

浏览器端批量压缩的工作原理

每张图片通过 JavaScript 在类似 Web Worker 的管道中处理:文件先使用 createImageBitmap()解码为位图,绘制到隐藏的 <canvas> 元素中,保持原始尺寸,然后使用 canvas.toBlob() 按照您选择的质量和格式重新编码。该过程使用 Promise 并行运行,多个图片同时处理,而非顺序执行。

客户端压缩的隐私优势

基于服务器的压缩工具会获取您上传的每张图片的副本。使用客户端处理时,图片永不离开您的设备——由您自己的 CPU 完成处理。这对机密产品照片、身份证件和专有设计尤为重要。

常见问题

There’s no hard limit imposed by the tool - you can select as many files as your browser can handle. However, processing very large batches (50+ large photos) may slow your browser temporarily because each image is decoded and re-encoded by the JavaScript engine. For best performance, batch in groups of 20–30 images at a time.
No. Every image is processed entirely inside your browser using the Canvas API. No data leaves your device at any point. This means bulk compression works offline once the page is loaded, and there are no file size limits imposed by server upload restrictions.
Each compressed image generates a download link as soon as it’s processed. You can download them individually. Browsers restrict JavaScript from triggering multiple simultaneous downloads automatically, so each file requires a separate click. Download them one by one from the results list.
For general web use, quality 75–82 WebP is ideal - it produces files 60–80% smaller than the originals with no visible difference at normal screen sizes. For product photography or portfolio images, use quality 85–90. For thumbnails and background images, quality 65–75 works well.