Hyva Render Media Image
Responsive image rendering for Hyvä templates using the Media view model's picture element generator.
- CCM score
- 63 of 100
- skills.sh installs
- 1.4K
- GitHub stars
- 86
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers generating
<picture>markup viagetResponsivePictureHtml()for hero, product, and CMS images - Includes a base PHTML template, a pattern table for literal, variable, and mobile/desktop image cases, and a reference file
- Sets loading strategy: eager loading with high fetchpriority for above-fold LCP images, lazy loading for below-fold
- Designed for Hyvä Theme developers who need responsive images with breakpoints in PHTML templates
Install
$ npx -y skills add hyva-themes/hyva-ai-tools --skill hyva-render-media-image -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Hyvä Render Image
Generate responsive <picture> elements for Hyvä Theme templates using the \Hyva\Theme\ViewModel\Media view model.
When to Use
- Adding images to Hyvä PHTML templates
- Creating responsive images with different sources for mobile/desktop
- Implementing hero banners, product images, or CMS content images
- Optimizing images for Core Web Vitals (LCP, CLS)
Workflow
1. Gather Image Requirements
The user may provide image data in one of these ways:
Option A: Direct values - Ask the user for:
- Image path(s) - Location in
pub/media/(e.g.,wysiwyg/hero.jpg,catalog/product/...) - Image dimensions - Width and height in pixels
- Responsive requirements - Different images for mobile vs desktop?
- Image purpose - Hero/LCP image (eager loading) or below-fold (lazy loading)?
- Alt text - Meaningful description for accessibility
Option B: PHP variable - The user provides a variable name (e.g., $imageData, $heroImage). Inform the user of the required array structure documented in references/rendering-images.md under ## Image Configuration Format.
Details
- Repository
- github.com/hyva-themes/hyva-ai-tools
- Categories
- Frontend & UI Code, PHP & Laravel
- First seen
- Jun 3, 2026
More from hyva-themes/hyva-ai-tools
All 12Similar to Hyva Render Media Image
More Frontend & UI Codeimage-optimizationSkillsecondsky/claude-skills622 installsPractical image optimization guide covering format choice, responsive markup, lazy loading, and build-time compression.
DarkroomMCP serversathergate97 starsImage processing pipeline for Next.js: responsive resizing and optimization through Sharp.
responsive-designSkillmindrally/skills892 installsComprehensive mobile-first responsive design guidelines covering layouts, media queries, images, and touch targets.
gpt-image-2Skillprime-skills/runcomfy-agent-skills99.2K installsImage generation and editing with GPT Image 2 that renders embedded text, logos, and layout precisely.