Skip to content

Instantly share code, notes, and snippets.

@eschwim
Created September 19, 2014 20:36
test_sharp_leak.js
var sharp = require('sharp');
sharp.cache(50, 200);
for (var i=1; i <= 1000; i++) {
var sharpObj = sharp('input.jpg').resize(300, 200).toFile('output.jpg', function(err) {
if (err) {
throw err;
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment