28 lines
552 B
Plaintext
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,
|
|
},
|
|
]}
|
|
/>
|