Files
2nd/10_Wiki/Topics/Domain_Programming/DevOps_and_Security/JPEG XL.md
T
Antigravity Agent c24165b8bc refactor(topics): 멀티 에이전트용 지식 재편 — _Common(공통 기본기) + Domain_* 구조
에이전트 8종(대화형/프로그래머 C·S/디자이너/설계자/기획자/QA/PD/PM)에게
[공통 기본 능력 + 롤별 Specialty] 2층으로 지식을 주입하기 위한 재분류.
문서 내용·포맷은 무수정, 폴더 이동만 (6,372개 문서 수 보존 확인).

- Topic_Programming → Domain_Programming (내부 구조 보존)
- Topic_Graphic → Domain_Design
- Topic_Business → Domain_Product
- Topic_General → Domain_General
- _Common 신설: Math(구 Topic_Math_Specialty), Reasoning(구 General/From_Thinking & Reasoning),
  Reasoning_Creativity(구 General/From_창의성), Communication(Poetic_Blog_Writing + From_writing)
- 타 도메인의 From_* 폴더는 유지 (출처 표기일 뿐, 이미 도메인에 맞게 분류된 문서)
- 빈 폴더 정리 (memory/procedures)
- 에이전트→폴더 매핑은 workspace의 .astra/agent-knowledge-map.json (9개 에이전트)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-11 11:05:56 +09:00

3.9 KiB

id, title, category, status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, verification_status, tags, raw_sources, last_reinforced, github_commit, tech_stack
id title category status canonical_id aliases duplicate_of source_trust_level confidence_score verification_status tags raw_sources last_reinforced github_commit tech_stack
wiki-2026-0508-jpeg-xl JPEG XL 10_Wiki/Topics verified self
jxl
jpeg-xl-format
none A 0.9 applied
image-format
compression
web-performance
codec
2026-05-10 pending
language framework
C++ libjxl

JPEG XL

매 한 줄

"매 royalty-free 차세대 image codec — 매 lossless JPEG transcoding + better-than-AVIF lossy". 매 ISO/IEC 18181 — 매 Cloudinary/Google이 design — 매 Safari 17+ 가 매 native 지원 — 매 2026 점진적 mainstream — 매 JPEG의 정신적 후계자.

매 핵심

매 차별점

  • lossless JPEG re-compress: 매 기존 JPEG 의 평균 20% 매 추가 절감, 매 100% 매 reversible.
  • wide gamut + HDR: 매 BT.2100, PQ/HLG, alpha, animation.
  • progressive decode: 매 stream-as-you-go.
  • CPU efficient: 매 AVIF 보다 encode 매 빠름.

매 brower support (2026)

  • Safari 17+: native.
  • Chrome: behind flag — 매 unflag 검토 중.
  • Firefox: nightly flag.
  • 매 polyfill: jxl.js (WASM).

매 응용

  1. 매 photography archive 의 size 의 줄임.
  2. 매 CDN의 multi-format negotiation (jxl > avif > webp > jpeg).
  3. 매 raw → web pipeline의 매 single-format 통일.

💻 패턴

매 cjxl encode

cjxl input.png output.jxl -q 90 --effort 7
# 매 distance 0.5-3.0 매 매우 high quality
cjxl input.jpg out.jxl --lossless_jpeg=1   # 매 JPEG → JXL 매 lossless

매 djxl decode

djxl out.jxl out.png
djxl out.jxl out.jpg --jpeg_jxl_to_jpeg  # 매 원본 JPEG bit-exact 복원

매 sharp (Node.js)

import sharp from 'sharp';
await sharp('photo.jpg')
  .jxl({ quality: 85, effort: 7 })
  .toFile('photo.jxl');

매 HTTP content negotiation

map $http_accept $img_ext {
  ~image/jxl  ".jxl";
  ~image/avif ".avif";
  ~image/webp ".webp";
  default     ".jpg";
}
location /img/ {
  try_files $uri$img_ext $uri =404;
}

매 picture element

<picture>
  <source type="image/jxl" srcset="hero.jxl">
  <source type="image/avif" srcset="hero.avif">
  <source type="image/webp" srcset="hero.webp">
  <img src="hero.jpg" alt="hero">
</picture>

매 polyfill (WASM)

<script type="module">
  import { decode } from 'https://unpkg.com/@jsquash/jxl';
  const buf = await fetch('photo.jxl').then(r => r.arrayBuffer());
  const imageData = await decode(buf);
  ctx.putImageData(imageData, 0, 0);
</script>

매 batch transcode

fd -e jpg . | parallel -j8 'cjxl {} {.}.jxl --lossless_jpeg=1'

매 quality tuning

# 매 distance 매 lower = better quality
# 매 1.0 매 visually lossless 의 일반적 target
cjxl in.png out.jxl -d 1.0 -e 7

매 결정 기준

상황 Approach
매 archival JPEG 매 lossless JXL transcode
매 web photo modern 매 JXL + AVIF fallback
매 universal 호환 매 JPEG/WebP 의 유지
매 HDR/wide gamut 매 JXL or AVIF

기본값: 매 archival lossless transcode + web 의 multi-format negotiation.

🔗 Graph

🤖 LLM 활용

언제: 매 archive 매 size 의 reduce 매 reversible 요구. 언제 X: 매 universal browser support 가 hard requirement.

안티패턴

  • JPEG → JXL → JPEG quality 매 lossy: 매 --lossless_jpeg=1 의 잊음.
  • only JXL serve: 매 Chrome user 매 broken image.
  • --effort 9 매 production encode: 매 CPU 의 30x.

🧪 검증 / 중복

  • Verified (libjxl 0.10+, ISO/IEC 18181, Safari 17+).
  • 신뢰도 A.

🕓 Changelog

날짜 변경
2026-05-08 Phase 1
2026-05-10 Manual cleanup — JPEG XL 인코딩/디코딩/HTTP negotiation 정리