og-image-size
하는 일
이 스킬은 페이지를 소셜 네트워크에 공유할 때 쓰이는 Open Graph 이미지를 확인하고, 일반적인 요구 사항에 맞지 않으면 크기를 조정합니다. 소셜 플랫폼에 웹사이트 콘텐츠를 공유하는 사람들을 위한 것입니다.
사용하는 경우
- ✓페이지의 소셜 공유 이미지를 확인하거나 만들어 달라고 요청할 때.
- ✓공유 링크에 빈 이미지, 잘린 이미지, 흐린 이미지가 나올 때.
- ✓새 페이지를 준비하면서 공유 이미지가 소셜 플랫폼에 맞도록 하고 싶을 때.
스킬 링크
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/og-image-size/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“링크를 공유하면 미리보기 이미지가 잘리거나 흐리게 보입니다. 공유 이미지 크기를 확인하고 고쳐 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 og:image 태그를 찾고, 이미지를 가져와 너비, 높이, 가로세로 비율, 파일 크기를 확인합니다. 1200 x 630픽셀 버전을 제안하거나 만들고, 크기 태그를 추가하며, 절대 HTTPS 주소를 사용합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
OG Image Size
An incorrectly sized og:image is displayed poorly or not at all on social platforms—Facebook, Twitter/X, LinkedIn each crop or skip images that don't meet their requirements, resulting in blank or distorted link previews.
Quick Reference
- og:image should be 1200×630 pixels (1.91:1 aspect ratio)
- Minimum size is 600×315 pixels; smaller images may not display
- File size should stay under 5 MB; under 1 MB is preferred
- Use JPEG or PNG; WebP has limited support on older platforms
Check
Find the og:image meta tag in <head> and fetch the image URL. Check the image dimensions and file size. Flag if width < 1200px, height < 630px, aspect ratio differs significantly from 1.91:1, or file size exceeds 5 MB.
Fix
Generate or resize the og:image to exactly 1200×630 pixels. Export as JPEG at 80–85% quality to balance visual quality and file size. Reference the absolute HTTPS URL in the og:image meta tag. Add og:image:width and og:image:height tags to help platforms render the image without downloading it first.
Explain
Social platforms use og:image to construct the visual card shown when a URL is shared. An image too small may be skipped or shown as a thumbnail. An image with the wrong aspect ratio gets cropped, often cutting off important content. The recommended 1200×630 size ensures optimal display across Facebook, LinkedIn, Slack, and iMessage.
Code Review
Check the og:image meta tag value. Fetch the image and verify: (1) dimensions are at least 1200×630 px, (2) aspect ratio is approximately 1.91:1, (3) file size is under 5 MB, (4) URL is absolute HTTPS, (5) og:image:width and og:image:height tags match actual dimensions. Flag relative URLs or images smaller than 600×315 px.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/seo/og-image-size
자주 묻는 질문
공유 이미지의 크기는 얼마여야 하나요?
스킬은 1.91 대 1 비율에 가까운 1200 x 630픽셀을 권장합니다.
어떤 파일 형식이 가장 좋나요?
스킬은 일부 구형 플랫폼에서 WebP 지원이 제한적이므로 JPEG나 PNG를 쓰라고 설명합니다.
width와 height 태그는 왜 추가하나요?
플랫폼이 이미지를 먼저 내려받지 않고도 표시할 수 있게 도와줍니다.
상세 정보
작성자의 원본 설명
Use when auditing Open Graph tags or generating og:image assets. Applies to any page that may be shared on social networks or messaging platforms.
인기도
- GitHub 스타
- 75k
- 순위
- #2959
- 라이선스
- MIT
- 업데이트
- 2026. 10. 31.
댓글
- …
이 저장소의 다른 스킬
frontendchecklist
75k명령줄 도구를 사용해 380개가 넘는 규칙으로 프런트엔드 코드와 실시간 페이지를 접근성, 속도, SEO, 보안 측면에서 점검합니다.
frontend-checklist-global
75kFront-End Checklist의 386개 규칙 전체로 프런트엔드 프로젝트를 감사하고, 발견한 문제마다 구체적인 해결 방법을 제시합니다.
404-page
75k없는 페이지 화면에 도움이 되는 링크가 있고 실제 404 상태 코드를 반환하는지 확인해, 길을 잃은 방문자를 돕습니다.
about-page
75k사이트를 운영하는 사람을 설명하는 명확한 소개 페이지가 있는지 검토해, 방문자와 검색 엔진의 신뢰를 높입니다.