Created
May 13, 2024 02:27
-
-
Save TJC/cd6a79c23555f93681c6cccf2421c6d3 to your computer and use it in GitHub Desktop.
Darken an image with ImageMagick command line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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