Giter Site home page Giter Site logo

bytescale / aws-image-magick-example Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 6.0 17 KB

Builds standalone ImageMagick binaries for Amazon Linux 2 / AWS Lambda.

Home Page: https://www.bytescale.com/blog/installing-imagemagick-on-amazon-linux-2/

License: MIT License

Dockerfile 12.89% Shell 87.11%
amazon-linux amazon-linux-2 aws aws-lambda docker imagemagick

aws-image-magick-example's People

Contributors

ljwagerfield avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

aws-image-magick-example's Issues

ERROR: failed to solve: failed to read dockerfile

Z:\aws-image-magick-example-main>docker build
[+] Building 0.1s (2/2) FINISHED docker:default
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2B 0.0s
ERROR: failed to solve: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount1459303780/Dockerfile: no such file or directory

View build details: docker-desktop://dashboard/build/default/default/vslbrnb1camez1zdnzyki5cyu

Z:\aws-image-magick-example-main>

What to do after having the binaries?

I succeed In making the binaries and I want to use them in my Amazon Lambda, How can I achieve that?

what should I write in my lambda_function.py
BTW some binaries got 0KB size

import os

# Set MAGICK_HOME and LD_LIBRARY_PATH environment variables
os.environ['MAGICK_HOME'] = '/result'
os.environ['LD_LIBRARY_PATH'] = '/result'


from wand.image import Image
from wand.drawing import Drawing
from wand.color import Color

but I end up with error:
Unable to import module 'lambda_function': MagickWand shared library not found.
You probably had not installed ImageMagick library

Issues while using strip argument

Hi,

After compiling the binary the below command results in some errors.

/convert sample.heic -strip test.heic

convert: Unsupported file-type: Unspecified `test.heic' @ error/heic.c/IsHeifSuccess/136

Please help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.