Skip to content

Instantly share code, notes, and snippets.

@roberto-butti
Created January 15, 2016 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roberto-butti/da8c8258c6d86a375083 to your computer and use it in GitHub Desktop.
Save roberto-butti/da8c8258c6d86a375083 to your computer and use it in GitHub Desktop.
Script per la sovrapposazione di N immagini con trasparenza
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