Alllow setting limitInputPixels with Sharp #8886
Labels
- P2: nice to have
Not breaking anything but nice to have (priority)
feat: assets
Related to the Assets feature (scope)
help wanted
Please help with this issue!
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I have a large image that I would like to embed in one of my pages.
Locally this fails with:
Which is related to lovell/sharp#2373
In the sharp image service here
astro/packages/astro/src/assets/services/sharp.ts
Line 46 in d5dc5ce
limitInputPixels: false
to the sharp constructor.What's the expected result?
I should be able to add
limitInputPixels: false
to the sharp constructorNote: I can't upload the gif to the stackblitz editor, so the example below has the image link embedded directly in it. This does not work - you need to copy it locally.
The full gif can be found here: https://tomforb.es/visualizing-how-s3-deletes-1-billion-objects-with-athena-and-rust/animation_5.gif
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-arpawb?file=src%2Fpages%2Findex.astro
Participation
The text was updated successfully, but these errors were encountered: