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 change the color of this arrow based on a selection from a color picker.
Basicly i tried this with Photoshop and the result looks like this. I used a simple color overlay with RGB(255,0,0)
Result
My goals is to do this with IM so i looked up the tinting samples which uses -colorize. But -colorize just blends the image with a fill color rather than overlay the base with the new color. I don't know how to get this work that it looks like in Photoshop.
I looked at the samples. But how can i modulate my image to an exactly value in RGB like
R:101 G:237: B159. Playing with the HUE value from 0 to 360 gives only 360 possible colors. I don't understand how this exactly works. I am a really noob to graphics.
you will have to convert RGB colors to HSL or HSB colors. There are many online tools that will do that for you. You provide the RGB and it tells you the HSL or HSB. See for example:
NyzeAustria wrote:Thx
Playing with the HUE value from 0 to 360 gives only 360 possible colors. I don't understand how this exactly works. I am a really noob to graphics.
The number is floating point, not integer! and it goes from 0 to 200 (the results is the same for those two values) with a value of 100 for no change.
Another way is to convert the image provided to a grayscale!
You can then tint that grayscale so that anything that was pure 50% gray becomes the exact color specified using -fill {color} -tint 100
Hmmm looking at the operator again, it seems I was wrong, pure grays do not become the exact color! I will need to study this further, and either get that fixed, or find out what it really is going.
I believe we have given you many solutions. If we have misunderstood your problem, please clarify with examples of what you have and what you need. It does not have to be the same solution as PS, but simply get you the same kind of results.