Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 .
```