description:Generate a tiny low-quality image placeholder with base64 data URI.
---
# LQIP Placeholder
Generate a tiny low-quality image placeholder (LQIP) from a source image. Returns a small placeholder file along with a base64 data URI, ready-to-use HTML `<img>` tag, and CSS `background-image` snippet for immediate embedding.
- The `dataUri` field contains the complete data URI, ready for use in `src` attributes or CSS without any additional requests.
- The `html` and `css` fields provide copy-paste snippets for common use cases.
- The `blur` strategy produces a soft, blurred thumbnail. The `pixelate` strategy creates a blocky mosaic. The `solid` strategy returns a single averaged color.
- Typical placeholder sizes are 200-500 bytes, making them suitable for inlining directly in HTML.
- Height is calculated automatically to preserve the source image's aspect ratio.
- HEIC, RAW, PSD, and SVG inputs are automatically decoded before processing.