This project demonstrates how to use GraphicsMagick with HEIF support in a Node.js application, running inside a Docker container.
- Docker
- Docker Compose
git clone <repository-url>
cd <repository-directory>
docker-compose build
To convert an HEIC image to JPEG, run the following command:
docker-compose run app node index.js <input-file.heic>
Replace <input-file.heic> with the path to your HEIC file.
Ensure your directory structure looks like this:
/your-project-directory
├── Dockerfile
├── docker-compose.yml
├── package.json
├── package-lock.json
├── index.js
└── test-image.heic