Skip to content

Instantly share code, notes, and snippets.

@MetroWind
Created May 5, 2022 17:54
Show Gist options
  • Save MetroWind/8daa2d9c9f382d786dd63b18a67f3979 to your computer and use it in GitHub Desktop.
Save MetroWind/8daa2d9c9f382d786dd63b18a67f3979 to your computer and use it in GitHub Desktop.
Combine two screenshots
#!/usr/bin/env zsh
convert -size 1292x928 xc:black -fill white -draw "path 'M 200,0 C 200,800 1500,720 1500,1100 V 2000 H 2000 V -20 H 200 L 200,0'" mask.png
composite dark.png light.png mask.png test.png
convert test.png \( light.png -channel a -separate +channel \) -alpha off -compose CopyOpacity -composite shot.png
rm test.png mask.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment