Skip to content

Repository files navigation

srcset

Build statusCoverage status

Highly customizable tools for generating responsive images: build-time generation, image proxy adapters and framework components - without vendor and server lock-in.

  • 🌠 Resize images for different screen sizes and densities
  • 📸 Convert images to modern formats such as WebP and Avif
  • ⚡️ Powered by sharp
  • 🧩 Webpack, Rspack and Vite integrations
  • 🖼 Сomponents for React, Preact and Svelte: blur-up placeholders, priority loading, tree-shakable image modules
  • 🌐 Image proxy backends - imgproxy and Cloudflare - build variant urls on top of emitted originals and CMS content images

For more details, guides and API references, check out the documentation website.

Packages

PackageDescriptionVersion
@srcset/coreImage processing: resize, convert and optimize images with sharp.NPM version
@srcset/cliCommand line tool to generate responsive images.NPM version
@srcset/runtimeBrowser runtime helpers: srcset strings and attributes of image variants.NPM version
@srcset/loaderWebpack and Rspack loader for generating responsive images.NPM version
@srcset/vite-pluginVite plugin for generating responsive images.NPM version
@srcset/imgproxyAdapter for imgproxy: srcset variant urls for content images and static assets.NPM version
@srcset/cloudflareAdapter for Cloudflare image transformations: srcset variant urls for content images and static assets.NPM version
@srcset/reactReact components for responsive images: Picture and Image.NPM version
@srcset/preactPreact components for responsive images: Picture and Image.NPM version
@srcset/svelteSvelte components for responsive images: Picture and Image.NPM version

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages