https://github.com/bytescale/aws-image-magick-example
Builds standalone ImageMagick binaries for Amazon Linux 2 / AWS Lambda.
https://github.com/bytescale/aws-image-magick-example
amazon-linux amazon-linux-2 aws aws-lambda docker imagemagick
Last synced: about 1 year ago
JSON representation
Builds standalone ImageMagick binaries for Amazon Linux 2 / AWS Lambda.
- Host: GitHub
- URL: https://github.com/bytescale/aws-image-magick-example
- Owner: bytescale
- License: mit
- Created: 2022-05-02T11:56:48.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-08-16T20:17:36.000Z (almost 3 years ago)
- Last Synced: 2025-06-30T23:36:00.552Z (about 1 year ago)
- Topics: amazon-linux, amazon-linux-2, aws, aws-lambda, docker, imagemagick
- Language: Shell
- Homepage: https://www.bytescale.com/blog/installing-imagemagick-on-amazon-linux-2/
- Size: 16.6 KB
- Stars: 13
- Watchers: 1
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Amazon Linux 2 ImageMagick Binaries (From Source)
This repository builds standalone ImageMagick binaries for Amazon Linux 2 that can be copy-pasted to any AWS Lambda function or EC2 instance.
**Blog post:** https://www.bytescale.com/blog/installing-imagemagick-on-amazon-linux-2/
**AWS Lambda Full Example:** https://github.com/bytescale/aws-lambda-image-magick-resize-example
## Quick Start
1. Checkout the repository:
```bash
git clone git@github.com:bytescale/aws-image-magick-example.git
cd aws-image-magick-example
```
2. Build the docker image:
```shell
docker build \
--platform linux/amd64 \
-t amazonlinuxmagick .
```
3. Extract the docker image's ImageMagick binaries:
```shell
docker run \
--rm -it \
--platform linux/amd64 \
-v $(pwd)/binaries:/root/output \
amazonlinuxmagick \
mv /root/result /root/output
```
4. `./binaries/result` on your host machine now contains a portable set of ImageMagick binaries!