Skip to content
cosmodev ~/tools/image-compressor

ตัวบีบอัดภาพ

Images & Media

ย่อขนาดไฟล์ภาพในเบราว์เซอร์ของคุณทั้งหมด — คุณภาพคงที่หรือปรับให้พอดีขนาดที่กำหนดโดยอัตโนมัติ ย่อขนาดตามมิติสูงสุดได้ตามต้องการ รองรับการทำเป็นชุด ไม่มีการอัปโหลดใด ๆ

เลือกรูปภาพเพื่อดูขนาดหลังบีบอัด

(เอกสารเป็นภาษาอังกฤษ)

Image Compressor

What it does

Re-encodes images locally to shrink their file size, two ways: a fixed quality slider, or a size budget — give it a KB target per image and it binary-searches the quality until the output fits. An optional max-dimension resize handles oversized photos in the same pass. JPEG and WebP sources keep their format; PNG sources re-encode as WebP (the lossy pipeline that makes compression possible). Batch supported, with a total-saved summary.

Your images never leave the page — that is the difference from online compressors, which upload every file you give them.

How to use

  1. Drop one or more images.
  2. Choose the mode: fixed quality, or a target size in KB.
  3. Optionally cap the longest dimension (0 keeps the original size).
  4. Press Compress, review the per-image savings, and save.

Examples

A 4.1 MB phone photo compressed at quality 75 typically lands near 600–900 KB (−80% or so); the summary line reports the exact total.

Target mode on the same photo with a 200 KB budget finds the highest quality that fits — usually around q55–q65 — and reports the quality it chose.

Good to know

  • Already-optimized files (small WebPs) may grow slightly; the delta turns red to tell you before you save.
  • PNG sources become WebP because PNG’s lossless pipeline cannot hit aggressive size targets.
  • The max-dimension resize is part of the same re-encode — no double compression pass.
ซอร์สโค้ด14 ภาษา

100% ฝั่งไคลเอนต์ · ข้อมูลของคุณไม่ออกจากเบราว์เซอร์ของคุณเลย ใช้แล้วเป็นประโยชน์ไหม แชร์ให้เพื่อนร่วมงานได้เลย