Comments (2)
The default value of limitInputPixels
is 268402689 (= 16383 * 16383) and is unrelated to either input or output format.
https://sharp.pixelplumbing.com/api-constructor
If you trust the input, you can set/remove this limit as follows:
- sharp("./input_1x16k_u0_v0_diffuse.jpeg").toFile("./out.avif", (err, output) => {
+ sharp("./input_1x16k_u0_v0_diffuse.jpeg", { limitInputPixels: false }).toFile("./out.avif", (err, output) => {
from sharp.
Thanks for getting back so fast. I assumed that limitInputPixels
encoder limit was defined per format, but I think I mixed it up with references to maxWidth/maxHeight
when searching the repo. Then indeed it's expected behavior, and changing that option within the constructor would be the way to go - at least it does work on that test-case.
from sharp.
Related Issues (20)
- Using node js sharp package composite function is not giving an animated result HOT 4
- `0.33.3` Throws `TypeError: A string was expected` HOT 11
- Issue with Color Consistency in CMYK Space When Using "Composite" in Sharp HOT 2
- Docs: add section with suggestions relating to security (includes relaxing defaults for trusted input) HOT 1
- When does one need to install `@img/sharp-libvips-dev`? HOT 1
- Strip EXIF data but keep original image unmodified HOT 2
- HELP, error in sharp. node js HOT 1
- How to set JFIF with jpg format HOT 2
- how to display tif image on the UI screen
- SharpJS not installing on Vercel anymore (it used to) HOT 1
- Get error "extract_area: bad extract area" when second extract call in toBuffer() HOT 1
- Install within Docker & PNPM HOT 3
- Error: Input buffer contains unsupported image format on image.metadata() HOT 1
- Width and height swapped in iOS photos HOT 5
- If packaging for cross platform electron, do I need to run npm install for both types of Mac CPU? HOT 1
- Support metadata for parsing gifs HOT 4
- vips jpegsave logs a warning while sharp handles it as error HOT 1
- Nuxt build failed on Cloudflare Pages. Cannot resolve "@img/sharp-wasm32/versions". HOT 2
- create gif using multiple images HOT 1
- Image metadata won't update HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharp.