toto=$1
gmic ../../topisto_vert_tr.png $@ -output topisto_tmp_$toto.png 

convert topisto_tmp_$toto.png -fuzz 10% -transparent white topisto_tmp_2_$toto.png

composite -compose copy_opacity  ../topisto_mask.png topisto_tmp_2_$toto.png topisto_$toto.png

rm -f topisto_tmp_$toto.png topisto_tmp_2_$toto.png
