Skip to content

Instantly share code, notes, and snippets.

@satyajitnayk
Last active June 24, 2025 07:46
Show Gist options
  • Save satyajitnayk/8d4f5a47a1b06931e3bb033ea50cf3a8 to your computer and use it in GitHub Desktop.
Save satyajitnayk/8d4f5a47a1b06931e3bb033ea50cf3a8 to your computer and use it in GitHub Desktop.
Invert Image Colors with macOS Shortcut + ImageMagick

Invert Image Color – macOS Shortcut with ImageMagick

A simple macOS Shortcut that inverts the colors of an image using ImageMagick.


Prerequisites ImageMagick Homebrew:

brew install imagemagick

Create the Shortcut

  1. Open the Shortcuts app.

  2. Create a new shortcut named Invert Image Color.

  3. Add actions:

    • Select use as quick action
    image image image * **Select Run Shell Script** ```shell /opt/homebrew/bin/magick "$1" -channel RGB -negate "$1" ```

In case you get permission errors: Go to System SettingsPrivacy & SecurityFull Disk Access.

Result

invert-image-colors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment