Skip to content

naoigcat/docker-imagemagick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker ImageMagick

Docker Builds

GitHub Stars Docker Pulls

Docker Image for ImageMagick

Installation

docker pull naoigcat/imagemagick

Usage

See imagemagick for available commands.

docker run --rm --user "$(id -u)":"$(id -g)" -v "$PWD":/app naoigcat/imagemagick identify image.png

It is recommended to create an alias:

alias imagemagick='docker run --rm --user "$(id -u)":"$(id -g)" -v "$PWD":/app naoigcat/imagemagick'

Using in GitHub Actions

You can use this Docker image in your GitHub Actions workflows to process images during CI/CD.

Basic Example

name: Process Image

on: [push]

jobs:
  generate:
    runs-on: ubuntu-latest
    container:
      image: naoigcat/imagemagick:latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v6

      - name: Create sample image
        run: magick -size 200x100 xc:white -gravity center -pointsize 24 -annotate 0 'Sample' output.jpg

      - name: Upload sample image
        uses: actions/upload-artifact@v4
        with:
          name: image
          path: output.jpg

Using with docker run

Alternatively, you can use the image with docker run in your workflow:

name: Process Image

on: [push]

jobs:
  process:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v6

      - name: Create sample image
        run: |
          docker run --rm --user "$(id -u)":"$(id -g)" -v "$PWD":/app naoigcat/imagemagick \
            magick -size 200x100 xc:white -gravity center -pointsize 24 -annotate 0 'Sample' output.jpg

      - name: Upload sample image
        uses: actions/upload-artifact@v4
        with:
          name: image
          path: output.jpg

About

Docker Image for ImageMagick

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •