I am resizing image on AWS lambda by using JIMP and if image is large 2MB+ it fails by time out when I am getting buffer:
const img = await jimp.read(buff); await img.resize(jimp.AUTO, 512); const imgBuff = await img.getBufferAsync(mime); // here, Lambda fails with timeout 