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 think you will need to post a link to your two images and then explain your concept for blending. I am also not sure why you are doing a sigmoidal contrast adjustment in colorspace gray?
exec("/usr/bin/convert \( banner322.png -brightness-contrast -40,30 \) 6294644895_caba4c5e85_b.jpg -gravity west -geometry +20+0 -compose over -composite user_uploads/fb_friends/400424_comp.png");
I didn't get any output.
I don't know that much about PHP, but you may have conflicts with unquoted parentheses. Are your sure your PHP is working with IM? What do you get from
exec("/usr/bin/convert -version");
Here is my result.
Is this what you are trying to achieve?
Last edited by fmw42 on 2012-01-08T22:24:23-07:00, edited 3 times in total.
exec("/usr/bin/convert banner322.png -brightness-contrast -40,30 6294644895_caba4c5e85_b.jpg -gravity west -geometry +20+0 -compose over -composite user_uploads/fb_friends/400424_comp.png");
Otherwise, it might be directories or permissions on the directories.
User Bonzo can probably help you further with your PHP exec command, when he gets online. You might get some clues by looking at his website as he codes in PHP exec. See http://www.rubblewebs.co.uk/index.php
agriz wrote:I got it working!.
But Image is not merged with the banner color.
I am not sure what you mean. See my result above and tell me if that is what you want and what you get? If that is not what you want, please explain why it is not or what you want changed about my example.
Is this more what you want?
convert 400424.jpg pic2.png -gravity west -geometry +20+0 -compose over -composite 400424_comp2.png
I renamed your image above from 400424_324213737601333_113544412001601_1056022_1484520050_n.jpg to 400424.jpg because it was too long for me to use. Your other image (the constant color) was kept the same as pic2.png. See your image names from the two your presented at the top.
You can also do something similar to my last example with