Install dependencies: sudo yum install libpng-devel libjpeg-devel libtiff-devel gcc ImageMagick-devel xz-devel.x86_64 fontconfig-devel.x86_64 libxml2-devel.x86_64 libtool-ltdl-devel lcms2-devel.On the server, download the latest version of ImageMagick 6 or 7 from.The AMI amzn2-ami-hvm-0313-x86_64-gp2 was used for this compilation. ImageMagickīefore proceeding, set up a Lambda Execution Environment. Updated instructions for nodejs10.x runtime Tar zcvf ~/imagemagick.tgz /var/task/imagemagick/ configure -prefix=/var/task/imagemagick -enable-shared=no -enable-static=yes Sudo yum -y install libpng-devel libjpeg-devel libtiff-devel gcc # This works with both ImageMagick v6.x and v7.x # process.env = process.env + '/imagemagick/bin:' + process.env # In a NodeJS runtime, you would add something like the following to the top of # to ensure these newer binaries are used. # You need to prepend PATH with the folder containing these binaries in your Lambda function # Must be run on an Amazon Linux AMI that matches AWS Lambda's runtime which can be found at:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |