hyva-render-media-image

Generate responsive <picture> elements using the Hyvä Media view model.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/Happy-Horizon/cursor-marketplace --skill hyva-render-media-image-happy-horizon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hyva-render-media-image
Source: https://github.com/Happy-Horizon/cursor-marketplace/tree/main/plugins/hyva-ai-tools/skills/hyva-render-media-image
Command: npx skills add https://github.com/Happy-Horizon/cursor-marketplace --skill hyva-render-media-image-happy-horizon

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Hyvä templates often struggle to deliver truly responsive images with proper breakpoints and alt attributes in a maintainable way. This skill provides a standardized approach to generate <picture> elements using the Hyvä Media view model to improve performance and accessibility.

Core Features & Use Cases

  • Generate responsive <picture> elements using the Hyvä Media view model to automatically select appropriate sources for mobile and desktop.
  • Support hero images, product images, and CMS content images with configurable loading strategies and alt text.
  • Integrate easily into PHTML templates to ensure consistent image markup across pages and campaigns.

Quick Start

Invoke the Hyvä Media view model to render a responsive picture element for your image sources.

Frequently Asked Questions about hyva-render-media-image

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

FAQPage Schema
How do I generate responsive picture elements in Hyvä templates?

To generate responsive picture elements in Hyvä templates, you invoke the Hyvä Media view model with your image sources, width, height, and alt text. This renders adaptive <picture> tags with appropriate mobile and desktop breakpoints.

What is the best way to handle responsive images for Hyvä theme hero banners?

The best way to handle responsive images for Hyvä theme hero banners is using the Hyvä Media view model. It generates adaptive <picture> elements that automatically select appropriate image sources across mobile and desktop breakpoints.

Can I configure lazy loading for product images using the Hyvä Media view model?

Yes, you can configure lazy loading for product images using the Hyvä Media view model. It accepts loading attributes in the data set, allowing you to specify either lazy or eager loading strategies for your CMS content and hero banners.

What data do I need to provide to render accessible responsive images in Hyvä?

To render accessible responsive images in Hyvä, you need to provide a data set of image sources including width and height, alt text, and loading attributes. This ensures the generated <picture> elements meet performance and accessibility standards.

Does generating responsive picture elements in Hyvä require additional dependencies?

Generating responsive picture elements in Hyvä requires access to the Hyvä Theme's Media view model. No additional dependencies are needed beyond the standard Hyvä environment to render the adaptive image markup.

Why use the Hyvä Media view model instead of standard HTML picture tags for CMS content?

Using the Hyvä Media view model instead of standard HTML tags provides a standardized approach to generate <picture> elements. This ensures consistent, maintainable image markup with proper breakpoints and alt attributes across all Hyvä templates.