Skip to content

Instantly share code, notes, and snippets.

@TJC
Created May 13, 2024 02:27
Show Gist options
  • Save TJC/cd6a79c23555f93681c6cccf2421c6d3 to your computer and use it in GitHub Desktop.
Save TJC/cd6a79c23555f93681c6cccf2421c6d3 to your computer and use it in GitHub Desktop.
Darken an image with ImageMagick command line
#!/bin/bash
# Assumes .jpg files, fix that if you need to
input="$1"
output=$(basename -s .jpg "$input")
output="${output}-darker.jpg"
convert "$input" -fill black -colorize 35 -quality 90 "$output"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment