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?".
thank you... I know the order of the modulate arguments, but I don't know how to apply this function on parts of the image, that have a certain color. I know how to replace certain parts with a color (f.e. fill with orange ...convert DSC_0208.JPG -fuzz 50% -fill orange -opaque blue test5.jpg) but I don't want to fill but just modulate the areas I get f.e. by -opaque blue.
It does not work if I replace -fill with -modulate, so I suppose, there is another solution for this?
Are you trying to increase the brightness and saturation, but only in the areas of the image with a blue hue? I'm still not clear on your intent. When you gave "-fuzz 50% -fill orange -opaque blue" as an example, do you mean that this makes the area you wish to -modulate orange? When you do try -modulate, does it give you what you want in those areas, if only it would leave the other areas alone? We would like to help, but at least I am unclear to your needs. Could you link to an example image?
I'm not sure that answered all my questions of your need. I'll assume that with your original and modulated image, every area is what you want in at least one of them.
thank you, but I try once more to explain: I have many images with something blue in the background*. with -opaque blue I managed to separated this part in the image. But instead of filling it with another color, I want to modulate this blue part f.e. change the saturation to 120, the brightness to 150 and the hue to 180.
*it's not always the same area of image, so I can not use composite...
Broken into steps so that you may examine the intermediate images. Change -modulate to whatever operation you like. Different masks or entire composite methods will certainly yield better blended results.
The best way to handle that is to make a mask for the blue area (you can even blur the border by a pixel or two if you want), then process the whole image with -modulate so that the blue areas are correct even though the rest of the image is not, then composite the two images together using the mask to control that the result contains the blue from the modulated image and the rest comes from the original image.