Created
January 28, 2017 02:36
-
-
Save allsey87/21d11bda050b849cb0a4004dcd69949f to your computer and use it in GitHub Desktop.
Create an image from two images by composing the first onto the second every time the file changes
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
#!/bin/bash | |
while inotifywait underlay.png | |
do | |
until composite -gravity center overlay.png underlay.png /tmp/out.png | |
do | |
sleep 0.25 | |
done | |
sleep 0.25 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment