Created
June 20, 2020 19:31
-
-
Save vguerrerobosch/a3386145ae362413397e03aa58719920 to your computer and use it in GitHub Desktop.
Create duotone images with ImageMagick
This file contains 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
# Create Color Look Up Table | |
convert -size 1x1 xc:#008cff xc:#ffffff +append clut.gif | |
# Create gradient | |
convert -size 20x256 gradient: -rotate 90 clut.gif -interpolate bilinear -clut gradient.gif | |
# PNG to JPG | |
mogrify -format jpg *.png | |
# Convert to grayscale | |
mogrify -path grayscale -colorspace Gray *.jpg | |
# Create duotone images | |
for file in *.jpg; do convert $file clut.gif -interpolate bilinear -clut duotone/$file; done | |
# Resize | |
mogrify -path resized -resize 1920x1440\> *.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment