How to use ImageMagick with a Lambda function on AWS?

แชร์
ฝัง

ความคิดเห็น • 28

  • @alimodz6253
    @alimodz6253 3 ปีที่แล้ว

    Ok just tried it and everything works! thank you for helping. This is my first lambda function :D

    • @alimodz6253
      @alimodz6253 3 ปีที่แล้ว

      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?

    • @alimodz6253
      @alimodz6253 3 ปีที่แล้ว

      ok I just increased Memory settings to 512MB and it worked. It used max 350MB.

  • @btgaston
    @btgaston 8 หลายเดือนก่อน

    this is an amazing video. thank you!

  • @PongZungKMITL
    @PongZungKMITL 2 ปีที่แล้ว

    Thank you so much, you save my life.

  • @sur90gan
    @sur90gan 2 ปีที่แล้ว

    Thank You !!! You saved my day !!!

  • @hitsistemas365
    @hitsistemas365 4 ปีที่แล้ว +1

    Great vid!! Thanks for the great tutorial!

  • @RicoMinovo
    @RicoMinovo 3 ปีที่แล้ว

    Really Great Video! Worked perfectly although I had to compress the file manually into a zip. Thank you!

  • @ariffrahim6459
    @ariffrahim6459 4 ปีที่แล้ว

    Omg thank you so much for the video!

  • @andrii5866
    @andrii5866 4 ปีที่แล้ว

    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.

  • @XavierLanglois
    @XavierLanglois 3 ปีที่แล้ว

    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 ^^'

  • @saisreekar7607
    @saisreekar7607 4 ปีที่แล้ว

    Great video.

  • @joefederer8863
    @joefederer8863 2 ปีที่แล้ว

    How might one get typography support - given the referenced layer doesn't include it?

  • @Bala-wp1dv
    @Bala-wp1dv 4 ปีที่แล้ว +2

    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

  • @JiyongShinful
    @JiyongShinful 4 ปีที่แล้ว

    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!

    • @JiyongShinful
      @JiyongShinful 4 ปีที่แล้ว

      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

  • @PhucNguyen-cd1nl
    @PhucNguyen-cd1nl 3 ปีที่แล้ว

    thank bro

  • @JiyongShinful
    @JiyongShinful 4 ปีที่แล้ว

    Could you kindly provide me the right direction when I want to apply digital watermarks using gm libraries?

    • @BiteSizeAcademy
      @BiteSizeAcademy  4 ปีที่แล้ว

      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

  • @joefederer8863
    @joefederer8863 2 ปีที่แล้ว

    This doesn't seem to have all the features? For example, wrapping with GM .... drawText does not work.

  • @saisreekar7607
    @saisreekar7607 4 ปีที่แล้ว

    I am getting cannot find module ‘gm’

    • @BiteSizeAcademy
      @BiteSizeAcademy  4 ปีที่แล้ว

      Make sure you have gm installed (3:13 npm install). You should have a node_modules folder in your lambda bundle with gm inside.

    • @saisreekar7607
      @saisreekar7607 4 ปีที่แล้ว

      BiteSize Academy then what’s the use of layer ? We can use node_modules only right…?

    • @BiteSizeAcademy
      @BiteSizeAcademy  4 ปีที่แล้ว +1

      @@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)

  • @devendrasingh9982
    @devendrasingh9982 4 ปีที่แล้ว +1

    Very Nice Article. Dear Author, May I know How clould I use same with Python

    • @BiteSizeAcademy
      @BiteSizeAcademy  4 ปีที่แล้ว

      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).