nextjs-image-art-direction とは?
getImageProps() を使用して Next.js 画像のアート ディレクションを実装します。モバイルとデスクトップのアセットを含むホームページのカルーセル、異なるトリミング/構成、またはモバイルとデスクトップの画像が完全に異なる場合など、異なるビューポート サイズに対して異なる画像を表示する場合に使用します。 ソース: flpbalada/my-opencode-config。
getImageProps() を使用して Next.js 画像のアート ディレクションを実装します。モバイルとデスクトップのアセットを含むホームページのカルーセル、異なるトリミング/構成、またはモバイルとデスクトップの画像が完全に異なる場合など、異なるビューポート サイズに対して異なる画像を表示する場合に使用します。
コマンドラインで nextjs-image-art-direction AI スキルを開発環境にすばやくインストール
ソース: flpbalada/my-opencode-config。
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 | Different image content/composition | with multiple elements | | Responsive Images | Same image, different sizes | sizes prop with srcset |
The getImageProps() function (stable since Next.js 14.1.0) generates the necessary props without calling React useState(), making it ideal for art direction.
getImageProps() を使用して Next.js 画像のアート ディレクションを実装します。モバイルとデスクトップのアセットを含むホームページのカルーセル、異なるトリミング/構成、またはモバイルとデスクトップの画像が完全に異なる場合など、異なるビューポート サイズに対して異なる画像を表示する場合に使用します。 ソース: flpbalada/my-opencode-config。
AI/検索での引用用の安定したフィールドとコマンド。
npx skills add https://github.com/flpbalada/my-opencode-config --skill nextjs-image-art-directiongetImageProps() を使用して Next.js 画像のアート ディレクションを実装します。モバイルとデスクトップのアセットを含むホームページのカルーセル、異なるトリミング/構成、またはモバイルとデスクトップの画像が完全に異なる場合など、異なるビューポート サイズに対して異なる画像を表示する場合に使用します。 ソース: flpbalada/my-opencode-config。
ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/flpbalada/my-opencode-config --skill nextjs-image-art-direction インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code、Cursor、OpenClaw で使用できるようになります
https://github.com/flpbalada/my-opencode-config