title: How to do image overlay and watermark using node.js in amazon lambda function
body: <p>I have images hosted on amazons3 server.my client wants to process the images using amazon lambda function. I have followed the example: <a href="http://docs.aws.amazon.com/lambda/latest/dg/walkthrough-s3-events-adminuser-create-test-function-create-function.html" rel="nofollow">http://docs.aws.amazon.com/lambda/latest/dg/walkthrough-s3-events-adminuser-create-test-function-create-function.html</a></p>
  
  <p>It is fine for resizing. But I want overlay and watermarking for the images also.But not getting a way.I have tried with imagemagick[<a href="https://www.npmjs.com/package/gm]" rel="nofollow">https://www.npmjs.com/package/gm]</a> for it seems to take path as parameter and the s3 image path is not helping me. the obvious reason I think is that they can't be directly accessed as the images paths in the directory.</p>
  
  <p>Any suggestion on how to achieve this. I stuck for last 3 days but not able move forward.Thanks in advance for help!!!!</p>