Skillpedia
وسائل التواصل الاجتماعي75k · #2959

og-image-size

ما الذي تفعله

تتحقق هذه المهارة من صورة Open Graph المستخدمة عند مشاركة الصفحة على الشبكات الاجتماعية، وتعيد تحجيمها إن لم تطابق المتطلبات الشائعة. وهي موجهة لمن يشاركون محتوى موقعهم على المنصات الاجتماعية.

متى تستخدمها

  • ✓عندما تطلب من الوكيل فحص أو إنشاء صورة المشاركة الاجتماعية لصفحاتك.
  • ✓عندما تظهر الروابط المشتركة معاينة فارغة أو مقطوعة أو غير واضحة.
  • ✓عندما تُعد صفحة جديدة وتريد أن تناسب صورة مشاركتها المنصات الاجتماعية.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/og-image-size/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“عندما أشارك روابطي تبدو صورة المعاينة مقطوعة أو غير واضحة. هل يمكنك فحص حجم صورة المشاركة وإصلاحه؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يجد الوكيل وسم og:image ويجلب الصورة ويتحقق من عرضها وارتفاعها ونسبة أبعادها وحجم ملفها. ثم يقترح أو ينشئ نسخة بأبعاد 1200 في 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

الأسئلة الشائعة

ما حجم صورة المشاركة؟

توصي المهارة بـ 1200 في 630 بكسل، أي نسبة عرض إلى ارتفاع تقارب 1.91 إلى 1.

ما نوع الملف الأفضل؟

تقول المهارة إنه JPEG أو PNG، لأن WebP محدود الدعم في بعض المنصات القديمة.

لماذا نضيف وسوم العرض والارتفاع؟

تساعد المنصات على عرض الصورة دون تنزيلها أولًا.

التفاصيل

الوصف الأصلي من المؤلف

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.

repo: thedaviddias/Front-End-Checklist

الشعبية

نجوم GitHub
75k
الترتيب
#2959
الترخيص
MIT
آخر تحديث
31‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة