code to change the color of tshirt is
exec("convert 01.png \( -clone 0 +level-colors black,yellow \) -draw 'color floodfill' tshirtnewt.gif")
please help me solving this problem.Thanks in advance

Your command does not make sense to me. What is the -draw for? You have not even specified the color you want with -fill somecolor? How are you merging the original with the processed clone?exec("convert 01.png \( -clone 0 +level-colors black,yellow \) -draw 'color floodfill' tshirtnewt.gif")
Code: Select all
convert 01.png +level-colors black,yellow shirt.gif