How to use ImageMagick with a Lambda function on AWS?

Поделиться
HTML-код
  • Опубликовано: 13 дек 2024

Комментарии • 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!

  • @sur90gan
    @sur90gan 2 года назад

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

  • @PongZungKMITL
    @PongZungKMITL 2 года назад

    Thank you so much, you save my life.

  • @hitsistemas365
    @hitsistemas365 4 года назад +1

    Great vid!! Thanks for the great tutorial!

  • @ariffrahim6459
    @ariffrahim6459 4 года назад

    Omg thank you so much for the video!

  • @RicoMinovo
    @RicoMinovo 3 года назад

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

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

  • @joefederer8863
    @joefederer8863 2 года назад

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

  • @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.

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

  • @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.

  • @PhucNguyen-cd1nl
    @PhucNguyen-cd1nl 3 года назад

    thank bro

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