/test_sharp_leak.js Secret
Created
September 19, 2014 20:36
test_sharp_leak.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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