본문으로 건너뛰기
Skillpedia
이미지 및 아이콘75k · #2944

modern-format

하는 일

이 스킬은 구형 형식을 쓰는 이미지를 찾아, 더 작은 파일인 WebP나 AVIF 같은 최신 형식을 제안합니다. 페이지를 빠르게 하고 데이터 사용량을 줄이려는 웹 제작자를 위한 스킬입니다.

사용하는 경우

  • ✓사이트의 이미지가 더 빨리 로드되도록 해 달라고 요청할 때.
  • ✓사진과 그래픽 파일이 커서 페이지가 느린 것 같을 때.
  • ✓사이트용 이미지를 준비하면서 안전한 대체 수단이 있는 최신 형식을 쓰고 싶을 때.

스킬 링크

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/modern-format/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/modern-format/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“내 웹사이트 이미지가 로드가 느려요. 최신 형식으로 바꾸고 코드도 업데이트해 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트가 img 태그와 배경 이미지에서 JPEG와 PNG 파일을 찾습니다. WebP나 선택적 AVIF 버전을 만드는 것을 돕고, 이미지를 picture 요소로 감싸 구형 브라우저에도 대체 이미지를 제공합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Use modern image formats (WebP, AVIF)

Images are typically 50%+ of page weight. Switching from JPEG to WebP alone reduces transfer sizes by 25-35% with no visible quality change, directly improving Largest Contentful Paint (LCP) and saving bandwidth for users on mobile data plans. These savings compound across every visitor and every image on the site.

Quick Reference

  • WebP is ~25-35% smaller than JPEG at equivalent quality (per web.dev)
  • AVIF is ~40-50% smaller than JPEG at equivalent quality (per web.dev)
  • Use <picture> with <source type="image/avif"> and <source type="image/webp"> plus an <img> fallback
  • WebP has 97%+ global browser support; AVIF is supported in all modern browsers as of 2023

Check

Scan all <img> elements and CSS background-image declarations in this codebase. Identify: 1) Any <img src> pointing to .jpg, .jpeg, or .png files (not served via a CDN that auto-negotiates format). 2) Any <picture> elements that lack <source type="image/webp"> or <source type="image/avif"> entries. 3) Any CSS background images using JPEG or PNG when a WebP equivalent could be used. Report each finding with file path and line number.

Fix

For each image not using modern formats: 1) Convert to WebP at 80% quality using Squoosh or Sharp. 2) Optionally also generate AVIF at 60% quality for browsers that support it. 3) Wrap the original <img> in a <picture> element and add <source type="image/avif"> and <source type="image/webp"> entries with the new files. 4) Keep the original JPEG/PNG as the <img src> fallback. For CSS background images, use a @supports (background-image: url('.webp')) { } query to serve WebP to supporting browsers.

Explain

Explain the compression advantages of WebP and AVIF over JPEG and PNG. According to web.dev, WebP lossless images are 26% smaller than PNG and WebP lossy images are 25-35% smaller than JPEG at equivalent visual quality. AVIF offers further improvements: roughly 40-50% smaller than equivalent JPEG. Explain browser support: WebP has 97%+ global browser support as of 2024. AVIF is supported in Chrome 85+, Firefox 93+, and Safari 16.4+. The <picture> element with fallbacks means there is no risk in adopting these formats today.

Code Review

Review image assets, markup, and delivery configuration related to Use modern image formats (WebP, AVIF). Flag exact files or components where format choice, sizing, or loading behavior violates the rule, and describe how to confirm the fix in DevTools.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/images/modern-format

자주 묻는 질문

WebP 이미지는 훨씬 작은가요?

비슷한 품질의 JPEG보다 약 25~35% 작고, AVIF는 더 작을 수 있다고 스킬은 설명합니다.

구형 브라우저에서도 이미지가 보이나요?

네. picture 요소는 img 대체 수단을 사용하므로, 새 형식을 지원하지 않는 브라우저도 이미지를 보여 줍니다.

이것이 로딩 속도에 영향을 주나요?

더 작은 이미지는 Largest Contentful Paint를 개선하고 데이터 사용량을 줄일 수 있다고 스킬은 말합니다.

상세 정보

작성자의 원본 설명

Use when reviewing image assets, markup, and CDN or build transforms related to Use modern image formats (WebP, AVIF). Check encoded size, rendered size, loading strategy, and above-the-fold impact together.

repo: thedaviddias/Front-End-Checklist

인기도

GitHub 스타
75k
순위
#2944
라이선스
MIT
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬