Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
I need to composite flag on face for create football fans.
I have some flag and when in use :
exec("convert face.jpg flag.jpg -compose Overlay -composite -quality 100 ".$result_image);
the result picture is not good in every case, for example if the flag has some color or shap result is better but with solid color, no.
in fact i need to create some picture like:
Upload your two input and output images to some free hosting service such as dropbox.com and put the URLs here. Then explain what is bad about the output result. Perhaps you need a different compose method.
with png file and 50% transparency with photoshop and use the:
exec("composite multiply -gravity center -geometry +0+0 iran.png face.jpg -quality 100 result.jpg");
result is: http://i59.tinypic.com/2jbw7jr.jpg
As you see, in my result with png and 50% transparency, i have a bad result, in case 2 and use the Overlay blend mode like photoshop my result is better but in photofunia result, the lips and face shown and red,white and green color is true and good for best result.
They have either a mask to cut the image to the face shape and/or they have code to wrap the image texture onto the face. Sorry I cannot tell which it is. But the first thing would be to make a mask for the area of the face you want and use the mask. The mask should be antialiased around its edges so that it blends at the edges. The mask image would then be a third image placed just before -compose in the code above.
#mask was processing in a GIMP or Photoshop to draw a polygon about the face, then blurred (-blur 0x3) in ImageMagick
convert FUfstEv.jpg \( ChYNTch.jpg -resize 220% -alpha set -channel a -evaluate set 50% +channel \) \
-gravity center -geometry +0-30 mask4.png -compose over -composite result3.jpg
i try to add some texture as you told to my flag color with photoshop with overlay blend mode and is seem awesome.
thank you fred for your help.
best regards.