https://github.com/magiclen/ubuntu-ffimagemagick
Full-featured ImageMagick on Ubuntu. Use Docker to compile.
https://github.com/magiclen/ubuntu-ffimagemagick
docker imagemagick ubuntu
Last synced: over 1 year ago
JSON representation
Full-featured ImageMagick on Ubuntu. Use Docker to compile.
- Host: GitHub
- URL: https://github.com/magiclen/ubuntu-ffimagemagick
- Owner: magiclen
- Created: 2022-11-20T03:17:54.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-10-02T08:40:51.000Z (over 1 year ago)
- Last Synced: 2025-01-24T15:35:13.321Z (over 1 year ago)
- Topics: docker, imagemagick, ubuntu
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Full-featured ImageMagick on Ubuntu
==========
This project aims to provide Dockerfile(s) to compile full-featured ImageMagick's executable file with **dynamic-linking** on Ubuntu-based Linux distributions.
#### Why not static?
If someone only uses Ubuntu and have no need to cross compile ImageMagick for other platform, dynamic linking can help re-using a lot of shared libraries and generating smaller and more efficient executable files.
However, this project still uses some static libraries which are useful but not provided by Ubuntu software repositories.
## Getting Start
#### Install Docker
```bash
sudo apt install docker docker-buildx
```
#### Compile
```bash
docker build -t imagemagick-build -f Dockerfile. .
docker run -v "$(pwd)/output":/output --name imagemagick-build imagemagick-build
```
`` can be `Jammy` (22.04), `Noble` (24.04).
Now, the executable files should be in the `./output` directory.
#### Clean Up
```bash
docker rm imagemagick-build
docker image rm imagemagick-build && docker image prune
```
## Run ImageMagick's Executable File
1. Open the Dockerfile you used.
2. Copy the `apt install` command in the runtime environment stage.
3. Run the command in the Ubuntu system that you want to run ImageMagick's executable file (to fix shared libraries not found issues).
#### Are these executable files Debian-compatible?
No. Even though Ubuntu is based on Debian, their software sources are somewhat different. Maybe you can find replaceable packages but I would recommend just modify the base image written in the Dockerfile of this project to a corresponding Debian image and build it.