read h testimages/halo3.tga read f testimages/alphafuzzyframe.tga rotate h 45 composite f over h 60 60 crop h 60 60 339 339 blank b 600 600 fill b 0 0 599 599 255 255 255 255 composite h over b 160 160 rotate b -45 crop b 100 100 499 499 write b out.tga