mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
22 lines
432 B
Markdown
22 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,
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
});
|
||
|
```
|