nextjs-image-art-direction

Render art-directed images in Next.js using getImageProps across breakpoints.

280|36|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/flpbalada/my-opencode-config --skill nextjs-image-art-direction
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-image-art-direction
Source: https://github.com/flpbalada/my-opencode-config/tree/main/skills/nextjs-image-art-direction
Command: npx skills add https://github.com/flpbalada/my-opencode-config --skill nextjs-image-art-direction

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Art direction requires serving different image compositions per breakpoint rather than simply resizing; this ensures visual fidelity and performance on each device.

Core Features & Use Cases

  • Art-directed image rendering using <picture> and multiple sources.
  • Performance optimization by serving breakpoint-specific assets.
  • Use Case: homepage banners and galleries that swap assets for mobile vs desktop.

Quick Start

Create a Next.js component that uses getImageProps to generate desktop and mobile image sets, implement a <picture> element with appropriate <source> media attributes, and ensure a single alt text plus a responsive sizes value.

Frequently Asked Questions about nextjs-image-art-direction

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I serve different image compositions per breakpoint in Next.js?

To serve different image compositions per breakpoint in Next.js, use the getImageProps API to generate desktop and mobile image sets within a <picture> element, applying appropriate <source> media attributes for art direction.

What is art direction in responsive web images?

Art direction in responsive web images is the technique of serving distinct image compositions per breakpoint rather than simply resizing. This ensures visual fidelity and performance on each device for homepage banners and galleries.

How do I use the Next.js getImageProps API for responsive images?

Use the Next.js getImageProps API for responsive images by creating a component that generates desktop and mobile image sets, implementing a <picture> element with a single alt text plus a responsive sizes value for optimal rendering.

Can I implement art-directed images in Next.js without external services?

Yes, you can implement art-directed images in Next.js without external services. This approach relies on the standard getImageProps API and standard frontend tooling to select distinct assets for different breakpoints.

When should I use different image crops for mobile vs desktop in Next.js?

You should use different image crops for mobile vs desktop in Next.js when homepage carousels, banners, or galleries require distinct compositions per breakpoint to maintain visual fidelity and performance across devices.