This repository has been archived on 2025-12-24. You can view files and clone it, but cannot push or open issues or pull requests.
site-template/ref/astro-imagetools/docs/src/components/ConfigOptions/quality.astro
2025-03-07 14:59:06 +01:00

28 lines
552 B
Plaintext

<!-- prettier-ignore -->
<Markdown is:raw>
### `quality`
**Type:** `number`
**Default:** `undefined`
All formats (except `gif`) allow the quality to be adjusted by setting this directive.
The argument must be a number between `0` and `100`.
> See sharps [Output options](https://sharp.pixelplumbing.com/api-output) for default quality values.
**Code example:**
</Markdown>
<CodeExample
{...Astro.props}
values={[
{
src: "https://picsum.photos/1024/768",
alt: "A random image",
quality: 50,
},
]}
/>