Skip to the content.

< Back home

Step 2: detect the image’s widths across all of these viewport widths

A script running a headless Chrome with Puppeteer will get the CSS width of an image on every relevant viewport widths.