# Responsive Image Generator > Make responsive images in the browser. Drop one image (JPG, PNG, WebP, AVIF, GIF, BMP) and get WebP and JPEG copies at 400, 800 and 1200 px wide plus the picture element with srcset, sizes, width, height, alt and lazy loading, and download everything as a ZIP. Free, no sign-up, nothing uploaded. URL: https://responsive-image-generator.skillsafe.ai/ ## What it does - Opens the image in the page (upright, as the camera took it) and makes each copy on a canvas, halving in steps for a clean downscale, then encodes it at quality 80 (40 to 95 can be chosen). - Widths: 400, 800 and 1200 px by default (any list of up to 10 widths can be typed). A width larger than the image is left out and the image's own width is used instead: nothing is enlarged. - Formats: WebP with a JPEG fallback by default; AVIF as well where the browser can write it. JPEG copies get a white background behind transparency. - Code: a picture element (AVIF and WebP sources, a JPEG img) with srcset, sizes, width and height of the largest copy (so the page does not jump), alt text, and loading="lazy" decoding="async" for an image further down the page or fetchpriority="high" for one at the top. src is the copy nearest 800 px. The folder in the paths can be changed (images/ by default). - sizes presets: full width (100vw); half the page on wide screens ((max-width: 600px) 100vw, 50vw); a third ((max-width: 600px) 100vw, (max-width: 1000px) 50vw, 33.33vw); a fixed width ((max-width: Npx) 100vw, Npx). - A table shows which copy a phone (390 px, 3x), tablet (820 px, 2x), laptop (1280 px), sharp laptop (1440 px, 2x) and desktop (1920 px) downloads for that sizes value. - Size targets: a hero image under 200 KB, a thumbnail (400 px wide or less) under 30 KB; files over a target are marked. - Download: name-responsive.zip with the copies in the images folder and the code in picture.html; single files and Copy HTML too. Settings used for a download are kept in this browser, and in your SkillSafe account when signed in. Images are never kept. ## Optional AI step (signed-in, metered) "Work out sizes from my layout" sends only the visitor's layout description (up to 800 characters) and page facts (the image's width and height, the current placement and widths). Never the image. The reply is a list of rules, one per screen range: {from, columns, gap, padding, container, fixed} in px, plus a placement id (hero, below, unsure) and reason ids. The page checks every number against the description (rem counted at 16 px; Tailwind and Bootstrap default breakpoints and Tailwind spacing classes when the description names the framework), leaves out any rule with a number that is not there, and itself writes the sizes attribute (for example "(min-width: 1200px) 276px, (min-width: 768px) calc((100vw - 80px) / 3), calc((100vw - 64px) / 2)") and the widths that cover a 320 px phone at 1x to a 1920 px screen at 2x. API: https://responsive-image-generator.skillsafe.ai/api.html (task "sizes"). ## Source Adapted from the agent skill @secondsky/image-optimization (secondsky/claude-skills, MIT): WebP with a JPEG fallback (and AVIF), srcset at 400, 800 and 1200 px, a Sharp pipeline resizing without enlargement at WebP quality 80, compression at 70-85, native lazy loading for images below the fold, and targets of a hero image under 200 KB and a thumbnail under 30 KB. The screen table, layout presets, ZIP and AI sizes step are this page's own. https://skillsafe.ai/skill/@secondsky/image-optimization Example photos: CC0 from Wikimedia Commons (Happy Couple by freestocks.org; two coffee cups; perched bird by Vincent van Zalinge).