ToolBox Image — 如何将图像精确压缩到 100 KB(或任何目标大小)
需要一张小于 100 KB 的图片用于表单上传、数据库限制或平台要求?以下是如何使用 ToolBox Image 精确达到任何文件大小。
Need to squeeze an image under 100 KB for a form upload? Hit exactly 250 KB for a job application system? Exact file size compression is one of the most requested features in any image tool.
Why exact file size matters
Most platforms don't just recommend staying under a limit — they hard-reject files that exceed it. A 101 KB file gets blocked by a 100 KB limit just as firmly as a 10 MB file.
How target-size mode works
The compressor takes a different approach than most tools. Instead of asking you to pick a quality number and hoping the file size is acceptable, it works backwards:
- You enter the maximum file size in KB
- The compressor starts at the highest quality setting and compresses the image
- If the result is still above the target, it lowers quality and tries again
- Once the result fits under the target, it runs a fine-tuning pass to maximise quality while staying under the limit
Real example: compressing to 100 KB
Take a 12 MB photo from a modern smartphone. To fit under 100 KB, the compressor needs to reduce the file by a factor of 120 — a 99.2% reduction. The compressor automatically switches to AVIF or WebP based on what produces the best result.
Batch compressing to a fixed size
Target-size mode works with batch processing too. Drop 50 images into the compressor, set the target to 500 KB, and every file comes out under that limit.