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% 클라이언트 측 · 데이터는 브라우저 밖으로 나가지 않습니다. 도움이 되었나요? 팀원에게 공유해 보세요.