Created
January 15, 2016 15:21
-
-
Save roberto-butti/da8c8258c6d86a375083 to your computer and use it in GitHub Desktop.
Script per la sovrapposazione di N immagini con trasparenza
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
COUNTER=1 | |
for currentfile in $(ls Productname*.png); do | |
if [ $COUNTER == 1 ]; then | |
cp $currentfile prova_$COUNTER.png | |
else | |
composite $currentfile prova_$(expr $COUNTER - 1).png prova_$COUNTER.png | |
fi | |
COUNTER=$(expr $COUNTER + 1) | |
done | |
convert prova_$(expr $COUNTER - 1).png -alpha extract -alpha on prova_Extract.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment