phazurlabs/chef-sumi/image-media-patterns

Claude Code and agent skill by phazurlabs/chef-sumi

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Complete image, video, and media UI pattern system. Covers hero images, product images, galleries, carousels, video players, audio players, avatars, thumbnails, image cropping, aspect ratios, lazy loading, responsive images, and media accessibility. Use when the user mentions: image, photo, gallery, carousel, slider, video player, audio player, avatar, thumbnail, hero image, product image, media player, image grid, lightbox, image crop, aspect ratio, responsive image, lazy loading, srcset, picture element, media pattern.

Install

npx vskill@latest install phazurlabs/chef-sumi/image-media-patterns

SKILL.md

The same SKILL.md was published earlier as phazurlabs/chef-sumi/image-media-patterns.

Image & Media Patterns — Complete Visual Media System

A comprehensive reference for every image, video, audio, and media UI pattern used in modern product design. Covers fundamentals, responsive strategies, performance optimization, gallery/carousel patterns, media players, avatars, upload flows, accessibility, and CSS techniques.


1. Image Fundamentals: Aspect Ratios

Standard Aspect Ratios
RatioDecimalPrimary Use CasesCSSCommon Resolutions
1:11.0Avatar, social post, thumbnail, album artaspect-ratio: 1150x150, 300x300, 600x600, 1080x1080
4:31.33Card thumbnail, classic photo, presentationaspect-ratio: 4/3640x480, 800x600, 1024x768, 1600x1200
3:21.5Photography, editorial card, DSLR nativeaspect-ratio: 3/2720x480, 1080x720, 1440x960, 2160x1440
16:91.78Video, hero banner, YouTube, widescreenaspect-ratio: 16/91280x720, 1920x1080, 2560x1440, 3840x2160
21:92.33Cinematic hero, ultra-wide monitor, filmaspect-ratio: 21/92560x1080, 3440x1440, 5120x2160
9:160.56Stories, Reels, TikTok, mobile-first verticalaspect-ratio: 9/161080x1920, 720x1280
2:30.67Portrait photography, Pinterest pin, book coveraspect-ratio: 2/3800x1200, 1000x1500
5:41.25Large format photography, Instagram landscapeaspect-ratio: 5/41080x864, 1350x1080
4:50.8Instagram portrait, product photoaspect-ratio: 4/51080x1350
When to Use Each Ratio
  • 1:1 — Best for avatars, product thumbnails in grids, social media posts (Instagram square). Creates visual uniformity in grid layouts. Use when you need perfect symmetry.
  • 4:3 — Traditional screen ratio. Good for card images, dashboards, thumbnail grids. Slightly taller than 3:2, giving more vertical space for subjects.
  • 3:2 — The "golden ratio" of photography. Native to most DSLR sensors. Ideal for editorial content, photo galleries, hero cards. Feels natural and balanced.
  • 16:9 — Standard widescreen. Required for video content. Use for hero banners, featured content sections, video thumbnails. The default for YouTube, Vimeo, streaming platforms.
  • 21:9 — Cinematic ultra-wide. Use sparingly for dramatic hero sections, landing page headers, film-related content. Creates strong horizontal emphasis.
  • 9:16 — Vertical mobile-first format. Essential for Stories (Instagram, Snapchat), Reels, TikTok, mobile fullscreen experiences. Dominant in short-form social video.
  • 4:5 — Instagram's preferred portrait format. Occupies maximum screen real estate on mobile feeds. Great for product photography.
Platform-Specific Conventions
PlatformFeed ImageStory/ReelProfile PhotoCover/Banner
Instagram1:1, 4:59:161:1 (320px)N/A
TikTok9:169:161:1N/A
YouTube16:99:16 (Shorts)1:1 (800px)16:9 (2560x1440)
Twitter/X16:9, 2:1N/A1:1 (400px)3:1 (1500x500)
LinkedIn1.91:1N/A1:1 (400px)4:1 (1584x396)
Facebook1.91:1, 1:19:161:1 (170px)2.63:1 (820x312)
Pinterest2:39:16 (Idea Pin)1:1N/A
Open Graph1.91:1 (1200x630)N/AN/AN/A

2. Image Display Patterns (18 Patterns)

2.1 Object-Fit Modes
ModeBehaviorUse Case
coverFill container, crop excess, maintain ratioHero images, card thumbnails, backgrounds
containFit inside container, show all content, may letterboxProduct images, logos, diagrams
fillStretch to fill, ignores ratioRare — background textures only
scale-downLike contain but never enlargesUser-uploaded images of unknown size
noneNatural size, may overflowSprites, pixel-art
2.2 Hero Image

Full-width image spanning the viewport or content area. Typically the first visual element on a page.

  • Full-bleed hero: Edge-to-edge, no margins. Use width: 100vw with negative margin or grid breakout.
  • Contained hero: Within max-width container (1200-1440px). Safer for text overlay readability.
  • Split hero: Image on one side, text on the other. 50/50 or 60/40 split.
  • Gradient overlay hero: Image with linear-gradient overlay for text contrast. linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%).
  • Video hero: Autoplay muted looping video replacing static image. See Video Patterns section.
  • Parallax hero: Background-attachment: fixed or JS-driven parallax scroll effect.

Design specs: Min height 50vh (mobile) to 70vh (desktop). Text overlay needs minimum 4.5:1 contrast. Always provide a solid color fallback behind the image.

2.3 Card Thumbnail

Image at the top or side of a card component.

  • Top image card: Image fills card width, fixed aspect ratio (3:2 or 16:9), content below.
  • Side image card: Image on left (120-200px wide), content on right. Good for list views.
  • Background image card: Image fills entire card, text overlaid with gradient scrim.
  • Inset image card: Image with padding inside card, rounded corners. Softer feel.

Always use object-fit: cover with a fixed aspect-ratio container. Never let card images distort.

2.4 Avatar

Circular or rounded-square image representing a user. See dedicated Avatar Patterns section below for full spec.

2.5 Profile Banner / Cover Photo

Wide rectangular image behind profile information.

  • Typical ratio: 3:1 to 4:1 (very wide and short).
  • Avatar overlaps banner bottom edge by 30-50%.
  • Mobile: banner crops center; provide focal-point metadata if possible.
  • Upload guidelines: minimum 1500px wide, suggest 1500x500 or 1584x396.
2.6 Product Image

Primary e-commerce image pattern.

  • Main image: Large, zoomable, white/neutral background, 1:1 or 4:5 ratio.
  • Thumbnail strip: 4-8 small thumbnails below/beside main image. Click to swap main. Active thumbnail gets border highlight.
  • Zoom on hover: CSS transform scale or lens-style magnifier showing 2-3x zoom.
  • 360-degree view: Sequence of images rotated by drag. 24-72 frames for smooth rotation.
  • Model/lifestyle shot: Product in context. Alternate with white-background shots.
2.7 Before/After Comparison

Two images shown side by side with a draggable divider.

  • Slider handle: vertical line with drag affordance (arrows or grip dots).
  • Both images must be identical dimensions and alignment.
  • Use clip-path: inset(0 50% 0 0) or overflow: hidden with variable width.
  • Accessible: provide text descriptions of both states. Keyboard arrow keys should move slider.
2.8 Image Comparison (Side by Side)

Two or more images displayed adjacent for visual comparison without a slider.

  • Use matching aspect ratios and identical container sizes.
  • Label each image clearly (A/B, Before/After, Option 1/2).
  • On mobile: stack vertically rather than side-by-side.
2.9 Zoomed Crop / Detail View

Close-up crop of a larger image to highlight detail.

  • Show outline on the source image indicating the crop region.
  • Display zoomed version in a separate panel or overlay.
  • Common in e-commerce (fabric texture), medical imaging, maps.
2.10 Tilt / Parallax Image

Image that responds to scroll position or mouse/device movement.

  • Scroll parallax: background-attachment: fixed (CSS only, limited mobile support) or JS-calculated transform: translateY() based on scroll offset.
  • Mouse parallax: Track cursor position, apply transform: translate3d() with dampened values.
  • Device tilt: Use DeviceOrientationEvent for mobile gyroscope-driven parallax.
  • Performance: Use will-change: transform. Avoid parallax on elements that trigger layout shifts.
2.11 Ken Burns Effect

Slow zoom and pan animation on a static image, creating cinematic movement.

css
@keyframes ken-burns {
0% { transform: scale(1) translate(0, 0); }
100% { transform: scale(1.15) translate(-2%, -1%); }
}
.ken-burns-image {
animation: ken-burns 20s ease-in-out infinite alternate;
object-fit: cover;
width: 100%;
height: 100%;
}

Use for hero sections, storytelling pages, memorial/tribute content. Always respect prefers-reduced-motion.

2.12 Image with Hotspots

Interactive image with clickable/tappable markers revealing tooltips or details.

  • Markers: numbered dots, plus icons, or pulsing circles.
  • Position markers with percentage-based absolute positioning.
  • On click/tap: show popover with text, link, or nested image.
  • Use case: product feature callouts, interactive infographics, floor plans.
2.13 Full-Bleed / Edge-to-Edge

Image spanning the full viewport width, breaking out of content container.

css
.full-bleed {
width: 100vw;
margin-left: calc(50% - 50vw);
}
2.14 Image with Caption

Image paired with descriptive text below or overlaid.

  • Use <figure> and <figcaption> for semantic markup.
  • Caption text: 12-14px, secondary color, max-width matching image.
  • Attribution line: photographer credit, source link.
2.15 Rounded / Shaped Image

Images cropped to non-rectangular shapes.

  • Circle: border-radius: 50% (requires 1:1 aspect ratio container).
  • Rounded rectangle: border-radius: 8-24px with overflow: hidden.
  • Blob/organic shape: clip-path: polygon(...) or SVG mask.
  • Diagonal cut: clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%).
2.16 Image Stack / Collage

Multiple overlapping images creating a layered composition.

  • Rotate each image 2-5 degrees with transform: rotate().
  • Apply box-shadow for depth: box-shadow: 0 4px 12px rgba(0,0,0,0.15).
  • Commonly 3-5 images. Polaroid-style borders optional.
2.17 Skeleton / Placeholder Image

Visual placeholder shown while the real image loads.

  • Solid color: Dominant color extracted from image (server-side).
  • Blur-up (LQIP): Tiny (20-40px wide) blurred version, crossfade to full image.
  • BlurHash/ThumbHash: Compact hash string decoded client-side to gradient placeholder.
  • Skeleton shimmer: Animated gradient sweep over gray rectangle.
  • Always match placeholder dimensions to final image to prevent CLS.
2.18 Background Image with Text Overlay

Full or partial background image with readable text on top.

Contrast techniques:

  1. Semi-transparent overlay: background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)).
  2. Text shadow: text-shadow: 0 2px 4px rgba(0,0,0,0.5).
  3. Frosted glass: backdrop-filter: blur(12px) on a semi-transparent panel.
  4. Scrim gradient: Gradient only where text appears.

Minimum contrast: 4.5:1 for body text, 3:1 for large text (WCAG AA).


3. Responsive Images

3.1 Resolution Switching with srcset

Serve different image sizes based on viewport width or device pixel ratio.

html
<!-- Width-based srcset (most common) -->
<img
srcset="photo-480.webp 480w,
photo-768.webp 768w,
photo-1200.webp 1200w,
photo-1920.webp 1920w"
sizes="(max-width: 600px) 100vw,
(max-width: 1024px) 50vw,
33vw"
src="photo-1200.webp"
alt="Mountain landscape at sunset"
loading="lazy"
width="1200" height="800"
decoding="async"
>
<!-- DPR-based srcset (for fixed-size images like logos) -->
<img
srcset="logo.png 1x, logo@2x.png 2x, logo@3x.png 3x"
src="logo.png"
alt="Company logo"
width="200" height="60"
>
3.2 Art Direction with picture Element

Serve entirely different image crops or compositions at different breakpoints.

html
<picture>
<!-- Mobile: tight portrait crop -->
<source media="(max-width: 639px)" srcset="hero-mobile.avif" type="image/avif">
<source media="(max-width: 639px)" srcset="hero-mobile.webp" type="image/webp">

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
2
7-day trend score
5

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/phazurlabs/chef-sumi/image-media-patterns/badge)](https://verified-skill.com/skills/phazurlabs/chef-sumi/image-media-patterns)

Something wrong with this skill or its page? Tell us.