Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nekonenene/imagemagick_heic_image
Dockerfile for ImageMagick with HEIC/HEIF support
https://github.com/nekonenene/imagemagick_heic_image
docker dockerfile heic heif imagemagick ubuntu
Last synced: about 7 hours ago
JSON representation
Dockerfile for ImageMagick with HEIC/HEIF support
- Host: GitHub
- URL: https://github.com/nekonenene/imagemagick_heic_image
- Owner: nekonenene
- Created: 2019-12-14T12:50:38.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-22T08:01:11.000Z (almost 3 years ago)
- Last Synced: 2023-03-11T12:23:09.861Z (over 1 year ago)
- Topics: docker, dockerfile, heic, heif, imagemagick, ubuntu
- Language: Dockerfile
- Size: 2.93 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dockerfile for ImageMagick with HEIC/HEIF support
When you need to convert `.heic` file (HEIF file format), this docker image will be useful.
## Build
```sh
docker build . -t imagemagick_heic
```## Run
```sh
docker run -it --name imagemagick_heic --rm imagemagick_heic /bin/bash
```Then, you can check ImageMagick version
```sh
convert -version
```### Convert HEIF(.heic) file to JPEG(.jpg)
1. Send HEIF(`.heic`) file to the container
```sh
# Command from outside of the container
docker cp /path/to/file.heic imagemagick_heic:/home
```
2. Convert HEIF(`.heic`) file to JPEG(`.jpg`)
```sh
# Command from the container
mogrify -format jpg *.heic
```
3. Send JPEG(`.jpg`) file to outside of the container
```sh
# Command from outside of the container
docker cp imagemagick_heic:/home/file.jpg .
```