nextjs-image-art-direction

Installation
SKILL.md

Next.js Image: Art Direction

Art direction means showing completely different images based on viewport size — not just resizing the same image. Common use cases include homepage carousels with different assets for mobile vs desktop, switching from landscape (desktop) to portrait (mobile), or showing cropped vs full compositions.

Art Direction vs Responsive Images

Approach Purpose Implementation
Art Direction Different image content/composition <picture> with multiple <source> elements
Responsive Images Same image, different sizes sizes prop with srcset

Use Art Direction When:

  • Homepage carousels with different images for mobile and desktop (e.g., square images on mobile, wide banner on desktop)
  • Mobile shows portrait crop, desktop shows landscape
  • Different focal points for different screen sizes
  • Completely different compositions are needed
  • Content hierarchy changes between breakpoints
  • Different image assets optimized for each viewport (e.g., mobile-optimized JPEGs vs desktop quality)
Related skills
Installs
4
GitHub Stars
2
First Seen
9 days ago