Just one problem, I tried uploading this image i.imgur.com/5rLGpkC.jpg but it seems to be taking very long until timing out. I increase the timeout to 30sec but still taking longer. Any ideas?
Please help. I used the same code provided in the github and followed the procedure but I face access denied at node_modules S3.js. I add permission to the role to have full access on S3
I'm going to do smth similar (creation thumb +watermark and saved on another folder in current bucket and it also should be triggered from the container). SUper unclear for now, wish me luck. Thanks for the tutorial.
Sorry again, I found this function to be working to meet my requirement. However, I am not too sure how to convert this to Lambda function workable. Would you be kindly help me? Thank you so much in advance! convert Google_photo.png \ \( -size 500x -background none -fill white -gravity center \ label:"19239123bb-129381284-bb9b9b818283dfjadf" -trim -rotate -30 \ -bordercolor none -border 10 \ -write mpr:wm +delete \ +clone -fill mpr:wm -draw 'color 0,0 reset' \) \ -compose over -composite \ max_watermark.png
Please see this repo: github.com/navjotdhanawat/dynamic-watermark it uses gm to add a watermark. I've haven't tried it but it seems like what you're after, specifically this part: github.com/navjotdhanawat/dynamic-watermark/blob/master/index.js#L81-L83
@@saisreekar7607 The layer is for installing ImageMagick. The gm module is for a more convenient javascript api to use ImageMagick from node. The gm library won't work if ImageMagick is not installed (see 7:51)
Try to follow the steps of adding the ImageMagick lambda layer and then use 'wand' (ImageMagick binding for Python), I think it should work. (Sorry, not familiar with Python).
Ok just tried it and everything works! thank you for helping. This is my first lambda function :D
Just one problem, I tried uploading this image i.imgur.com/5rLGpkC.jpg but it seems to be taking very long until timing out. I increase the timeout to 30sec but still taking longer. Any ideas?
ok I just increased Memory settings to 512MB and it worked. It used max 350MB.
this is an amazing video. thank you!
Thank You !!! You saved my day !!!
Thank you so much, you save my life.
Great vid!! Thanks for the great tutorial!
Omg thank you so much for the video!
Really Great Video! Worked perfectly although I had to compress the file manually into a zip. Thank you!
Please help. I used the same code provided in the github and followed the procedure but I face access denied at node_modules S3.js. I add permission to the role to have full access on S3
Any luck in getting it working?
How might one get typography support - given the referenced layer doesn't include it?
I'm going to do smth similar (creation thumb +watermark and saved on another folder in current bucket and it also should be triggered from the container). SUper unclear for now, wish me luck. Thanks for the tutorial.
coool :D (I had to upload node sharp in node_modules because I did not know that lambda layer thing with imagemagick ready to use as layer T_T ^^'
Great video.
Thanks for the great video! Could you get me into the right direction when I wanna use the function of watermarking instead of resizing? Thanks!
Sorry again, I found this function to be working to meet my requirement. However, I am not too sure how to convert this to Lambda function workable. Would you be kindly help me? Thank you so much in advance!
convert Google_photo.png \
\( -size 500x -background none -fill white -gravity center \
label:"19239123bb-129381284-bb9b9b818283dfjadf" -trim -rotate -30 \
-bordercolor none -border 10 \
-write mpr:wm +delete \
+clone -fill mpr:wm -draw 'color 0,0 reset' \) \
-compose over -composite \
max_watermark.png
Could you kindly provide me the right direction when I want to apply digital watermarks using gm libraries?
Please see this repo: github.com/navjotdhanawat/dynamic-watermark it uses gm to add a watermark. I've haven't tried it but it seems like what you're after, specifically this part: github.com/navjotdhanawat/dynamic-watermark/blob/master/index.js#L81-L83
This doesn't seem to have all the features? For example, wrapping with GM .... drawText does not work.
thank bro
I am getting cannot find module ‘gm’
Make sure you have gm installed (3:13 npm install). You should have a node_modules folder in your lambda bundle with gm inside.
BiteSize Academy then what’s the use of layer ? We can use node_modules only right…?
@@saisreekar7607 The layer is for installing ImageMagick. The gm module is for a more convenient javascript api to use ImageMagick from node. The gm library won't work if ImageMagick is not installed (see 7:51)
Very Nice Article. Dear Author, May I know How clould I use same with Python
Try to follow the steps of adding the ImageMagick lambda layer and then use 'wand' (ImageMagick binding for Python), I think it should work. (Sorry, not familiar with Python).