You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you using the latest version? Is the version currently in use as reported by npm ls sharp the same as the latest version as reported by npm view sharp dist-tags.latest?
No, but I think it is close enough, the version I am using is 0.28.1 and the latest is 0.28.2.
What are the steps to reproduce?
Take a large collection of images, each as a Buffer, and attempt to composite them all at once. (My total count was 1353 small images that I needed to composite onto a 4096 x 4096 png image)
What is the expected behaviour?
The images in the earlier parts of the array render properly, but after a certain amount (I got about 10% of my image) the images suddenly stop, and many are cut off.
Are you able to provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem?
What I had was something like this:
//Asyncletcomposite=[];for(constimageofimages){//Image names, not datalet{ data }=awaitnewPromise((resolve,reject)=>{sharp(image).rotate(-90).toBuffer({resolveWithObject: true}).then(resolve).catch(reject);});composite.push({input: data//Position as well});};sharp({create: {width: 4096,height: 4096,channels: 4,background: {r: 0,g: 0,b: 0,alpha: 0}}}).composite(composite).toFile("output.png")
Are you able to provide a sample image that helps explain the problem?
Broken Image:
Expected image:
(It's a texture pack splitter/merger for Geometry Dash)
What is the output of running npx envinfo --binaries --system?
Are you using the latest version? Is the version currently in use as reported by
npm ls sharp
the same as the latest version as reported bynpm view sharp dist-tags.latest
?No, but I think it is close enough, the version I am using is
0.28.1
and the latest is0.28.2
.What are the steps to reproduce?
Take a large collection of images, each as a
Buffer
, and attempt tocomposite
them all at once. (My total count was1353
small images that I needed to composite onto a4096
x4096
png image)What is the expected behaviour?
The images in the earlier parts of the array render properly, but after a certain amount (I got about 10% of my image) the images suddenly stop, and many are cut off.
Are you able to provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem?
What I had was something like this:
Are you able to provide a sample image that helps explain the problem?
Broken Image:
Expected image:
(It's a texture pack splitter/merger for Geometry Dash)
What is the output of running
npx envinfo --binaries --system
?(I am running on replit)
Current Fix
What I ended up doing was splitting the
composite
array into chunks of ten images, and cycling between two images.The text was updated successfully, but these errors were encountered: