phazurlabs/chef-sumi/image-media-patterns
Claude Code and agent skill by phazurlabs/chef-sumi
- community
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-patternsSKILL.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
| Ratio | Decimal | Primary Use Cases | CSS | Common Resolutions | |
|---|---|---|---|---|---|
| 1:1 | 1.0 | Avatar, social post, thumbnail, album art | aspect-ratio: 1 | 150x150, 300x300, 600x600, 1080x1080 | |
| 4:3 | 1.33 | Card thumbnail, classic photo, presentation | aspect-ratio: 4/3 | 640x480, 800x600, 1024x768, 1600x1200 | |
| 3:2 | 1.5 | Photography, editorial card, DSLR native | aspect-ratio: 3/2 | 720x480, 1080x720, 1440x960, 2160x1440 | |
| 16:9 | 1.78 | Video, hero banner, YouTube, widescreen | aspect-ratio: 16/9 | 1280x720, 1920x1080, 2560x1440, 3840x2160 | |
| 21:9 | 2.33 | Cinematic hero, ultra-wide monitor, film | aspect-ratio: 21/9 | 2560x1080, 3440x1440, 5120x2160 | |
| 9:16 | 0.56 | Stories, Reels, TikTok, mobile-first vertical | aspect-ratio: 9/16 | 1080x1920, 720x1280 | |
| 2:3 | 0.67 | Portrait photography, Pinterest pin, book cover | aspect-ratio: 2/3 | 800x1200, 1000x1500 | |
| 5:4 | 1.25 | Large format photography, Instagram landscape | aspect-ratio: 5/4 | 1080x864, 1350x1080 | |
| 4:5 | 0.8 | Instagram portrait, product photo | aspect-ratio: 4/5 | 1080x1350 |
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
| Platform | Feed Image | Story/Reel | Profile Photo | Cover/Banner | |
|---|---|---|---|---|---|
| 1:1, 4:5 | 9:16 | 1:1 (320px) | N/A | ||
| TikTok | 9:16 | 9:16 | 1:1 | N/A | |
| YouTube | 16:9 | 9:16 (Shorts) | 1:1 (800px) | 16:9 (2560x1440) | |
| Twitter/X | 16:9, 2:1 | N/A | 1:1 (400px) | 3:1 (1500x500) | |
| 1.91:1 | N/A | 1:1 (400px) | 4:1 (1584x396) | ||
| 1.91:1, 1:1 | 9:16 | 1:1 (170px) | 2.63:1 (820x312) | ||
| 2:3 | 9:16 (Idea Pin) | 1:1 | N/A | ||
| Open Graph | 1.91:1 (1200x630) | N/A | N/A | N/A |
2. Image Display Patterns (18 Patterns)
2.1 Object-Fit Modes
| Mode | Behavior | Use Case | |
|---|---|---|---|
cover | Fill container, crop excess, maintain ratio | Hero images, card thumbnails, backgrounds | |
contain | Fit inside container, show all content, may letterbox | Product images, logos, diagrams | |
fill | Stretch to fill, ignores ratio | Rare — background textures only | |
scale-down | Like contain but never enlarges | User-uploaded images of unknown size | |
none | Natural size, may overflow | Sprites, 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: 100vwwith 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)oroverflow: hiddenwith 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-calculatedtransform: translateY()based on scroll offset. - Mouse parallax: Track cursor position, apply
transform: translate3d()with dampened values. - Device tilt: Use
DeviceOrientationEventfor 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.
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.
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-24pxwithoverflow: 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:
- Semi-transparent overlay:
background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)). - Text shadow:
text-shadow: 0 2px 4px rgba(0,0,0,0.5). - Frosted glass:
backdrop-filter: blur(12px)on a semi-transparent panel. - 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.
3.2 Art Direction with picture Element
Serve entirely different image crops or compositions at different breakpoints.
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
- SKILL.md in the repositoryCheckingskills/image-media-patterns/SKILL.md
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
[](https://verified-skill.com/skills/phazurlabs/chef-sumi/image-media-patterns)