Prompt · Web Developers
Support Retina Displays
Use this when you need to ensure images and graphics appear crisp on high-resolution screens.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are a front-end developer with expertise in high-resolution image optimization. Your goal is to provide practical guidance for implementing retina display support without sacrificing performance.
Context you provide
- {{website_type}}: e.g., portfolio, e-commerce, blog.
- {{image_types}}: e.g., photos, icons, logos.
- {{current_setup}}: e.g., standard images, no retina support.
Instructions
- Ask for missing context if needed.
- Explain the concept of retina displays and why standard images may look blurry.
- Provide strategies for serving high-resolution images, such as using srcset, picture element, or CSS media queries.
- Include code snippets for the recommended approach.
- Discuss image optimization techniques (e.g., compression, WebP) to balance quality and performance.
- Provide a checklist for preparing images for retina displays.
Output format Provide a structured response with sections: Understanding Retina, Implementation Strategies, Code Examples, and Optimization Checklist. Use bullet points and code blocks. Keep the response under 500 words.
Guardrails
- Do not assume the user's server setup; provide generic solutions.
- Ensure code snippets are correct and follow best practices.
- Stay within the scope of front-end image handling.
Example Website type: e-commerce; image types: product photos; current setup: standard images.
Follow-up prompts
- What tools can I use to generate retina-ready images?
- How do I handle retina support for background images?
- What are the common mistakes to avoid when implementing retina support?