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

image-optimization

하는 일

이 스킬은 프로젝트의 모든 이미지를 검토하고, 각 이미지가 흔한 웹 성능 문제를 갖는지 확인합니다. 빠르고 안정적인 페이지를 원하는 개발자와 디자이너를 위한 것입니다.

사용하는 경우

  • ✓페이지가 느리고 이미지가 원인일 가능성이 높을 때.
  • ✓이미지에 크기 속성이나 지연 로딩 설정이 빠져 있을 때.
  • ✓출시 전에 이미지 처리 전체를 검토하고 싶을 때.

스킬 링크

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

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

사용 방법

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

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

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/image-optimization/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분.

작동 방식

에이전트는 각 이미지의 형식, 반응형 크기, 너비와 높이, 지연 로딩, 파일 크기를 확인합니다. 문제를 심각도별로 묶고, WebP나 AVIF를 쓰는 picture 요소와 srcset 크기 같은 수정 방법을 제안합니다.

기술 내용 (원본 SKILL.md)

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

Optimize all images for web

Images typically account for 50%+ of page weight. Unoptimized images cause slow load times, wasted bandwidth, poor Core Web Vitals scores, and frustrated users—especially on mobile networks.

Quick Reference

  • Use modern formats: AVIF > WebP > JPEG/PNG
  • Compress images to 80% quality for photos
  • Always provide responsive srcset for different screen sizes
  • Use <picture> element for format fallbacks

Check

Scan this codebase for all image assets and <img> elements. For each image, verify: 1) Format is appropriate (WebP/AVIF for photos, SVG for icons, PNG only for transparency). 2) Responsive srcset and sizes attributes exist for images > 100px wide. 3) width/height attributes are present to prevent layout shift. 4) loading='lazy' is set for below-fold images. 5) File sizes are reasonable (< 200KB for photos, < 50KB for graphics). Report issues grouped by severity with file paths.

Fix

For each image optimization issue found: 1) Convert JPEG/PNG photos to WebP with AVIF fallback using <picture> element. 2) Add srcset with 400w, 800w, 1200w, 1600w variants and appropriate sizes attribute. 3) Add explicit width/height attributes matching aspect ratio. 4) Add loading='lazy' to images below the fold, keep priority images without lazy loading. 5) Compress images to 80% quality for photos, 60% for AVIF. 6) Use SVG for icons and logos. Show the corrected HTML with optimized image markup.

Explain

Explain the impact of image optimization on Core Web Vitals, specifically how unoptimized images affect Largest Contentful Paint (LCP) and Cumulative Layout Shift (CLS). Cover the compression differences between AVIF, WebP, and JPEG formats, when to use each, and browser support considerations. Describe how srcset and sizes work together to serve appropriately-sized images, and why width/height attributes prevent layout shift. Include bandwidth savings calculations and loading performance improvements.

Code Review

Review image assets, markup, and delivery configuration related to Optimize all images for web. 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/image-optimization

자주 묻는 질문

모든 이미지를 지연 로딩해야 하나요?

아닙니다. 스킬은 맨 위의 메인 이미지처럼 중요한 이미지는 지연 로딩하지 않아야 한다고 설명합니다.

어떤 형식을 권장하나요?

AVIF를 먼저, 그다음 WebP를 권장하며, JPEG나 PNG를 대체 형식으로 둡니다. 아이콘과 로고에는 SVG를 권장합니다.

너비와 높이를 왜 추가하나요?

스킬은 명시적인 크기가 페이지 로딩 중 레이아웃이 밀리는 것을 막는다고 설명합니다.

상세 정보

작성자의 원본 설명

Use when reviewing image assets, markup, and CDN or build transforms related to Optimize all images for web. Check encoded size, rendered size, loading strategy, and above-the-fold impact together.

repo: thedaviddias/Front-End-Checklist

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬