Joint Photographic Experts Group (.jpg)

ISO/IEC 표준

JPEG is the most widely adopted lossy compression standard for digital photography and web imagery, exploiting the human eye's higher sensitivity to luminance over chrominance.

PNG을(를) JPG(으)로 변환

무료 브라우저 내 PNG-JPG 변환기. 기기에서 파일을 즉시 변환하세요.

JPG 온라인 압축

브라우저 내 100% 안전한 압축 — 파일이 기기 외부로 전송되지 않습니다

검사 및 메타데이터

운영 체제와 파일 분석기는 파일 선두의 바이너리 바이트 시퀀스를 검사하여 JPG 파일을 식별합니다:

파일 선택 또는 드래그

여기에 파일을 선택하거나 놓으세요

100% 브라우저 내 프라이버시 변환 - 파일이 기기를 절대 떠나지 않습니다

또는 붙여넣기 Ctrl+V
제로 네트워크 전송 프라이버시 보장: 외부 서버로 업로드된 데이터 0바이트. 모든 처리는 브라우저 샌드박스내에서 로컬로 수행되었습니다.

바이트 단위 헤더 시그니처 (매직 바이트)

운영 체제와 파일 분석기는 파일 선두의 바이너리 바이트 시퀀스를 검사하여 JPG 파일을 식별합니다:

16진수 시그니처 (오프셋 0):

FF D8 FF

ASCII 표현: ÿØÿ

표준화: ISO/IEC 10918-1 / ITU-T T.81

기술 사양

컨테이너 아키텍처Marker-delimited binary stream (0xFF prefix) wrapped in JFIF or EXIF headers
압축Lossy Discrete Cosine Transform (DCT) + Run-length & Huffman entropy coding
바이트 엔디안Big-Endian for marker lengths and quantization tables; Exif can be Little (II) or Big (MM)
색 공간sRGB, Adobe RGB, CMYK, Y'CbCr, Grayscale
채널 및 구조8-bit per channel (24-bit Truecolor) or 8-bit Grayscale
최대 크기65,535 x 65,535 pixels (2-byte unsigned integers)
투명도None (Opaque only; no alpha channel support)
스트리밍 및 프로그레시브Progressive JPEG encoding stores multiple spectral passes from low to high resolution

기술 비교 매트릭스: JPG 대 경쟁사

기술적 속성JPG (현재)WebPAVIFPNG
Compression ParadigmLossy DCT + Huffman codingLossy (VP8) & LosslessLossy (AV1) & LosslessLossless Deflate
Alpha TransparencyNo alpha channel support (always opaque)8-bit alpha transparency8-bit / 10-bit / 12-bit alphaFull 8-bit / 16-bit alpha
Hardware Decoding100% dedicated silicon in virtually every GPU and mobile SoCWidespread hardware decode in modern SoCsRapidly expanding hardware decode in modern GPUsCPU-based fast decode
Compression EfficiencyGood baseline for photographs25%-35% smaller than JPEG at equal quality40%-55% smaller than JPEG at equal qualityInefficient for photographic content
Color Bit DepthStandard 8-bit per channel (24-bit Truecolor)8-bit per channel10-bit & 12-bit HDR wide color gamut8-bit & 16-bit per channel

일반적인 손상 모드 및 헥스 복구 가이드

⚠️ Image viewer shows 'Premature end of JPEG file' or the lower portion of the photo is solid gray or colorful banding.

근본 원인: Truncated download or incomplete storage write missing the 0xFFD9 (EOI) trailer marker and image scan payload.

복구: Append marker 0xFFD9 to the end of the truncated stream to allow decoders to display the intact upper portion of the photograph.

⚠️ Image colors appear heavily shifted, inverted, or psychedelic.

근본 원인: CMYK color space header inverted or invalid embedded ICC profile.

복구: Convert the color space from CMYK to sRGB using ImageMagick ('magick broken.jpg -colorspace sRGB fixed.jpg').

⚠️ File fails to open and reports 'Invalid marker found'.

근본 원인: Bit corruption inside the Quantization Table (DQT 0xFFDB) or Huffman Table (DHT 0xFFC4) headers.

복구: Replace the damaged header markers with standard baseline JFIF Huffman and Quantization tables extracted from an intact JPEG.

보안 분석 및 파서 공격 벡터

JPEG security primarily involves metadata privacy leaks (EXIF) and buffer overflows in legacy C decoders (libjpeg).

알려진 공격 벡터

  • Sensitive metadata disclosure: Unstripped EXIF headers containing GPS coordinates, camera serial numbers, and thumbnail previews.
  • Buffer over-reads and integer overflows in legacy libjpeg parsing corrupt restart markers (RST) or progressive scan scripts.
  • Polyglot files combining JPEG headers with executable ZIP or RAR archives.

방어적 모범 사례: Always strip EXIF and GPS geolocation metadata when publishing user photos to protect user privacy. Use modern memory-safe decoders (such as image-rs in Rust) or sandboxed WebAssembly decoders.

역사적 배경 및 주요 이력

1998JFIF and EXIF container standards establish digital camera dominance.
1992JPEG specification ratified as ISO/IEC 10918-1.
1986Joint Photographic Experts Group founded under ISO and CCITT.

주요 장점

  • 100% universal hardware and software decoding support across all computers and cameras.
  • Excellent compression ratios (10:1 to 20:1) for photographic continuous tones.
  • Small payload footprint with progressive rendering capability.

기술적 제한 사항 및 단점

  • Lossy compression causes compression artifacts (ringing and blockiness) along sharp edges.
  • No transparency channel support.
  • Generation loss occurs every time a file is decompressed, edited, and re-saved.

흥미로운 기술적 상식

  • The classic 'Lenna' test image used to develop JPEG compression was scanned from the November 1972 issue of Playboy magazine.
  • JPEG 4:2:0 subsampling halves chroma resolution both horizontally and vertically with near-zero perceptual degradation.
  • Every standard JPEG begins with marker 0xFFD8 (Start of Image) and ends with 0xFFD9 (End of Image).

자주 묻는 기술 질문

Why does saving a JPEG file multiple times reduce image quality?

JPEG is an irreversibly lossy compression format. Each time you decompress and re-save a JPEG, the DCT quantization step discards high-frequency spatial details and re-approximates 8x8 pixel blocks, causing cumulative 'generation loss' artifacts.

What is Progressive JPEG and why is it useful?

A standard baseline JPEG decodes scanline by scanline from top to bottom. Progressive JPEG encodes image data in multiple spectral passes, allowing browsers to render a low-resolution blur of the entire image instantly and sharpen it progressively as bytes download.

What is Chroma Subsampling (4:2:0 vs 4:4:4)?

The human retina has more rod cells (luminance/brightness) than cone cells (color). JPEG exploits this by preserving full brightness resolution (Y) while halving color resolution (Cb, Cr) horizontally and vertically (4:2:0), shedding 50% of the raw data before compression with imperceptible loss.

Can a JPEG image have a transparent background?

No. The standard JPEG specification has no concept of an alpha channel. If transparency is required, you must convert the image to WebP, AVIF, or PNG.