mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
08402ad584
* Add limitInputPixels option for sharp image service * Fix types * Update docs Co-authored-by: sarah11918 <sarah11918@users.noreply.github.com> --------- Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> Co-authored-by: sarah11918 <sarah11918@users.noreply.github.com>
21 lines
432 B
Markdown
21 lines
432 B
Markdown
---
|
|
'astro': minor
|
|
---
|
|
|
|
Adds an option for the Sharp image service to allow large images to be processed. Set `limitInputPixels: false` to bypass the default image size limit:
|
|
|
|
```js
|
|
// astro.config.mjs
|
|
import { defineConfig } from 'astro/config';
|
|
|
|
export default defineConfig({
|
|
image: {
|
|
service: {
|
|
entrypoint: 'astro/assets/services/sharp',
|
|
config: {
|
|
limitInputPixels: false,
|
|
},
|
|
},
|
|
},
|
|
});
|
|
```
|