<?php exec ("/usr/bin/convert -size 100x100 xc: -fx 'rr=hypot(i/w-.5, j/h-.5); 1-rr*1.42' temp/gradDiamond.jpg"); $SHIFT="-size 1x2 gradient:black-yellow -fx 'v.p{0,0}*u+v.p{0,1}*(1-u)' -roll +50+50"; exec ("/usr/bin/convert temp/gradDiamond.jpg $SHIFT temp/diamond.jpg"); exec ("/usr/bin/montage temp/diamond.jpg temp/diamond.jpg temp/diamond.jpg temp/diamond.jpg temp/diamond.jpg -background black -geometry +0+0 -tile 5x1 temp/DiamondMont.jpg"); exec ("/usr/bin/convert -background black -wave 10x90 -virtual-pixel Black -distort Arc 180 -resize 500x150! temp/DiamondMont.jpg temp/Wavediamond.jpg"); print "<a href=temp/Wavediamond.jpg><img src=temp/Wavediamond.jpg>"; ?> |