Works with the AI Agents you already use

    Website Photos & Video: Sizes, Galleries, Lazy Video

    by Siyakha Digital by Thebe Ramathebane

    1

    Automated media optimization pipeline for high-performance web galleries, responsive images, and lazy-loaded video.

    Free

    Security scanned
    Website Photos & Video: Sizes, Galleries, Lazy Video

    Website Photos & Video: Sizes, Galleries, Lazy Video

    Example session with this skill installed

    Here are 11 photos and a video from our recent events (all straight from WhatsApp). Put them on the site in the best places without making it slow on phones.

    • Read your context and instructions
    • Compiled the website photos

    11 photos and 1 video, ready for the site (example)

    Photos (two widths each, WebP, never upscaled):

    PhotoUsed for1600 px800 px
    Food parcels outside the hallHero slide 1 + phone crop (4:5)117 KB40 KB
    Library opening (banner visible)Events gallery133 KB56 KB
    Toy day (date stamp cropped off)Hero slide 3139 KB42 KB
    Two near-duplicate handoverskept the sharper one68 KB27 KB

    Left out: a close-up of a child receiving fruit (privacy).

    Video: 18.5 MB, 82 s phone clip →

    9.3 MB at the same 848×478 size (H.264 about 850 kbps, AAC 96 kbps, fast start). The page shows only a poster and a play button with "1 min 22 s"; the video downloads when play is pressed, and focus moves to it so keyboard users keep their place. Its opening title card reads "Fun Walk 2026", so that's now the event name.

    Gallery: the first three items, then "Show 1 more photo"; a full-screen viewer with a counter, arrows, swipe and Escape.

    Next: tell me the event dates you know, and send the remaining event's photos.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Websites slow down when owners upload raw smartphone media. This skill provides a systematic pipeline for optimizing high-resolution photos and videos into performant web assets without losing visual quality.

    What it does

    • Multi-size generation produces optimized .webp variants at 1600px and 800px widths to ensure fast loading on mobile devices.
    • Smart cropping handles portrait-orientation hero images for mobile by centering on subjects and removes unsightly camera date stamps or watermarks.
    • Video compression re-encodes MP4s to manageable bitrates (approx. 850 kbps) and generates high-quality poster frames to prevent layout shift.
    • Lazy loading orchestration implements a "load on play" strategy for videos and deferred loading for images below the fold to save user bandwidth.
    • Interactive galleries builds accessible slideshows, "Show More" expansion logic, and <dialog>-based lightboxes with keyboard navigation.

    How it works

    1. File analysis runs sips or identify to inspect dimensions, metadata, and visual content like logos or faces.
    2. Asset processing executes shell and Swift scripts to batch convert images to WebP and re-encode video at target bitrates.
    3. Component integration writes HTML/CSS for responsive galleries, ensuring hero images use <source> tags for art direction.
    4. Cleanup identifies and removes orphaned media files that are no longer referenced in the site content.

    Frameworks & tools

    The pipeline utilizes sips, imagemagick (identify), ffmpeg, and a custom Swift-based encoder. Frontend output relies on semantic HTML5, native <dialog> elements, and vanilla JavaScript for focus management and lazy loading.

    Why this beats prompting it yourself

    Standard LLMs often suggest heavy libraries or generic compression that ruins visual clarity. This skill enforces specific bitrate targets and complex accessibility patterns, like focus management in lightboxes, that manual prompts frequently overlook.

    Use cases

    • Optimizing 3MB WhatsApp photos for a fast-loading event gallery.
    • Creating a mobile-first hero section with art-directed portrait crops.
    • Embedding video testimonials that don't destroy Lighthouse performance scores.
    • Managing large portfolios with "Show More" pagination and full-screen viewers.

    Known limitations

    Requires macOS for sips and swiftc components. Video re-encoding requires ffmpeg for non-macOS environments.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 5 days ago

    • Free with an Agensi account

    Nothing to install. It runs in your AI agent.

    Optional
    macOS
    orImageMagick
    FFmpeg

    Permissions

    Terminal / Shell
    Listed5 days ago

    What's inside

    Frequently Asked Questions

    This skill automates the conversion of raw media into high-performance web formats, specifically handling WebP generation, smart cropping for mobile responsiveness, and bitrate-optimized video compression to boost site speed and SEO.

    Yes, the pipeline includes a 'cleanup' phase that scans your project to identify and remove orphaned media files that are no longer referenced in your HTML, keeping your storage footprint lean.

    The skill uses intelligent analysis to center on subjects during portrait cropping and enforces specific bitrate targets (approx. 850 kbps for video) to ensure a perfect balance between file size and visual clarity.

    New in Workflow Automation

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.

    Free