Skip to content

Latest commit

 

History

History
38 lines (20 loc) · 777 Bytes

README.md

File metadata and controls

38 lines (20 loc) · 777 Bytes

Svelte Image - Plugin for vite to auto optimize images.

Available query parameters

layout = "constrained" || "fixed" || "fullWidth"

width = number

height = number

aspectRatio = number

placeholder = blurred || dominantColor || tracedSvg

formats = "auto" | "webp" | "jpeg" | "png" | "avif"

grayscale = boolean

duotone = boolean

rotate = boolean

trim = number

cropFocus = "cover" | "entropy" | "attention"

imageFit = "cover" | "contain" | "fill" | "inside" | "outside"

sizes = string

quality = number

outputPixelDensities = number[]

breakpoints = number[]

License

This package is distributed under the MIT License. You can do what you want with this code.