I'm running this process on AWS Lambda. I'm expecting the file to be modified and then written
The file that is being written is a 0 Byte empty file .png file. I put the file before the mod in s3, it's as expected. I put it in s3 again after editing it and it puts a 0B file in the bucket
It does work sometimes, but 20% of the time it writes an actual image
I'm not getting an error, it's just writing an empty file.
const image = await Jimp.read(path)
await image.invert().contrast(0.7).write(path)
Node v8.10 on AWS Lambda
None
I have never used AWS myself so idk how to easily make a reproduction of this. Could you provide an example repo with AWS setup instructions?
Facing same issue.
try
await image.writeAsync('name.png')
Most helpful comment
try
await image.writeAsync('name.png')