responsive-images
यह क्या करती है
यह स्किल साइट के इमेज मार्कअप की जाँच करती है और जहाँ srcset और sizes एट्रीब्यूट छूटे हों या गलत हों, वहाँ उन्हें जोड़ती है। यह उन वेब बिल्डरों के लिए है जो अलग-अलग स्क्रीन पर अलग आकार में इमेज दिखाते हैं।
कब इस्तेमाल करें
- ✓जब आप एजेंट से चाहें कि हर डिवाइस पर इमेज सही आकार में लोड हो।
- ✓जब फ़ोन पर बड़ी डेस्कटॉप इमेज डाउनलोड हों और लोडिंग धीमी लगे।
- ✓जब आप आर्टिकल कार्ड, गैलरी या ऐसे कंपोनेंट बना रहे हों जो कई चौड़ाई पर इमेज दिखाते हैं।
Skill का लिंक
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/responsive-images/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरी साइट फ़ोन पर बहुत बड़ी इमेज भेजती है। क्या आप रिस्पॉन्सिव इमेज सेट कर सकते हैं ताकि हर डिवाइस को सही आकार मिले?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट कई चौड़ाइयों वाला srcset और असली लेआउट से मेल खाने वाला sizes एट्रीब्यूट जोड़ता है। इससे ब्राउज़र हर स्क्रीन और पिक्सल घनत्व के लिए सबसे छोटी उपयुक्त फ़ाइल चुन सकता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Implement responsive images with srcset
Serving a 2000px image to a 400px phone screen wastes bandwidth and slows loading—srcset lets the browser download only the size it needs.
Quick Reference
- Use srcset to provide multiple image sizes
- Use sizes attribute to tell browser which size to download
- Browser selects optimal size based on viewport and DPR
- Can save 50-70% bandwidth on mobile devices
Check
Verify that images use srcset and sizes attributes for responsive delivery.
Fix
Implement responsive images with srcset for different screen sizes and resolutions.
Explain
Explain how responsive images deliver optimized versions based on device capabilities.
Code Review
Inspect image markup and component abstractions for srcset, sizes, and width/height handling. Flag pages that always ship desktop-sized assets to mobile, omit sizes, or generate variants that do not match the actual rendered layout.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/images/responsive-images
अक्सर पूछे जाने वाले सवाल
अगर sizes गलत हो तो क्या होता है?
स्किल कहती है कि गलत sizes एट्रीब्यूट srcset का फ़ायदा खत्म कर सकता है, क्योंकि ब्राउज़र बहुत बड़ी फ़ाइल चुन सकता है।
क्या मुझे इमेज के कई संस्करण बनाने होंगे?
हाँ। srcset के लिए इमेज के कई आकार चाहिए, जिन्हें बनाने में एजेंट मदद कर सकता है।
क्या इससे बैंडविड्थ बचती है?
स्किल कहती है कि इससे मोबाइल डिवाइस पर काफ़ी बैंडविड्थ बच सकती है।
जानकारी
लेखक का मूल विवरण
Use when reviewing article images, cards, galleries, or any component rendered at multiple sizes across breakpoints. Check both the markup and the CSS layout because an incorrect `sizes` attribute can negate a perfectly good `srcset`.
लोकप्रियता
- GitHub स्टार
- 75k
- रैंकिंग में स्थान
- #2997
- लाइसेंस
- MIT
- अपडेट की गई
- 31/10/2026
कमेंट
- …
इस repository की और skills
frontendchecklist
75kकमांड-लाइन टूल से फ़्रंटएंड कोड और लाइव पेजों को एक्सेसिबिलिटी, स्पीड, SEO और सिक्योरिटी के 380 से ज़्यादा नियमों से जाँचती है।
frontend-checklist-global
75kफ़्रंटएंड प्रोजेक्ट को Front-End Checklist के सभी 386 नियमों से ऑडिट करती है, और हर मिली समस्या का ठोस समाधान देती है।
404-page
75kजाँचती है कि आपका गुम पेज उपयोगी लिंक देता है और सही 404 स्टेटस लौटाता है, ताकि भटके हुए विज़िटर रास्ता ढूँढ सकें।
about-page
75kजाँचती है कि आपकी साइट पर एक साफ़ About पेज है जो बताता है कि उसे कौन चलाता है, ताकि विज़िटर और सर्च इंजन का भरोसा बढ़े।
मिलती-जुलती skills
gifgrep
394kयह आपके एजेंट को GIF लाइब्रेरी में खोजने, नतीजों का पूर्वावलोकन करने, GIF डाउनलोड करने, और उससे एक फ़्रेम या फ़्रेम्स की शीट निकालने देती है।
meme-maker
394kयह आपके एजेंट को मीम टेम्पलेट चुनने, अपने कैप्शन जोड़ने और मीम को SVG या PNG इमेज के रूप में बनाने देती है।
ios-icon-gen
280kआपके एजेंट को iOS ऐप्स के लिए icons बनाने देता है। यह Apple symbols या दूसरे स्रोतों के आइकन इस्तेमाल करके सही files बनाता है।