Responsive Image Sizes
A responsive image is a set of real files plus markup that tells the browser how wide each file is and how wide the layout slot is likely to be. The responsive image generator can plan the numbers without a photograph, and it encodes files when you choose one. Processing stays in the browser.
Widths and heights
The default list is 320, 480, 640, 768, 1024, 1280, 1600, and 1920. Repeated widths are dropped. If upscaling is off, a target wider than the source is skipped and the reason is shown. Height follows the locked ratio and is rounded to a whole pixel. The srcset descriptor uses the width of the file that was actually encoded. A file that came out 638 pixels wide is not labeled 640w.
A small srcset
Three WebP files named landscape-320.webp, landscape-640.webp, and landscape-1280.webp, with heights 180, 360, and 720 for a 16:9 ratio, can be written as one srcset. Alternative text is escaped, so a typed angle bracket cannot become markup. The sizes example used here is full viewport width below 768 pixels and half the viewport above that. Sizes describes the layout slot. It does not force the browser to download the smallest file. Device pixel ratio and cache policy also matter.
Picture elements
A picture element lists type alternatives only for formats this page really encoded. One WebP set does not invent a JPEG source. PNG remains the lossless choice with transparency. JPEG is offered with a quality field from 1 to 100 and a background color. If the browser cannot encode the type you asked for, the download keeps the type the browser returned.
ZIP files
Download all as ZIP builds a store-method archive of the encoded bytes. The file starts with a real ZIP header and contains the image bytes, not a text note renamed to end in .zip. Empty files are refused. You can still download one width at a time from the table after the byte size has been measured.
Pair this with the resizer when you need a single master, and with the ratio guide when the height looks unexpected after rounding.
A 16:9 plan you can check by hand
At 16:9, width 320 has height 180, 640 has 360, and 1280 has 720. Pixel counts are 57,600, 230,400, and 921,600. Those heights are exact multiples, so rounding does not disturb the ratio. A width of 1000 is not an exact multiple. Nearest height is 563, while the exact-ratio width that does not exceed 1000 is 992, with height 558. If the generator rounds 1000×562.5 to 1000×563, the srcset width is still 1000 because that is the canvas width, and the ratio note belongs in your layout notes rather than in a fake 992w descriptor.
Filename prefixes are reduced to letters, numbers, hyphens, and underscores so a pasted path cannot escape the file name. The ZIP is built after the blobs exist, using stored bytes and a CRC for each entry. Download one row first if you only need a proof. Then copy the srcset or the picture block into your page as text. The preview on this site does not execute that markup.
Device pixel ratio sits beside the generator because a 320-pixel CSS slot on a ratio-2 screen may look sharper with a 640-pixel file. The sizes attribute can express that layout, but the decision is still the browser’s. Test the slot in your own page rather than assuming the smallest file will be chosen.
Questions
- Do I have to upload the picture?
- No. Planning works from the ratio alone. Encoding needs a local file and does not send it to a server.
- Is the sizes attribute the file width?
- No. It is a hint about the CSS layout, written by you for the design you have in mind.