Windows equivalent of: -fill "black(25%)" -colorize 100

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?".
josephs
Posts: 40
Joined: 2014-04-08T10:13:43-07:00
Authentication code: 6789

Re: Windows equivalent of: -fill "black(25%)" -colorize 100

Post by josephs »

Thanks Fred. I can confirm I got it to work!

So this is what I did:

convert frame.tif -fill black -colorize 100%% frame.tif
convert frame.tif -channel a -evaluate multiply 0.6 +channel result.tif

I had to add the additional line of code to your last suggestion. This way there is a opacity with the black border and not opacity against the original image.

Thanks for your help!
josephs
Posts: 40
Joined: 2014-04-08T10:13:43-07:00
Authentication code: 6789

Re: Windows equivalent of: -fill "black(25%)" -colorize 100

Post by josephs »

Thanks Fred. I can confirm I got it to work!

So this is what I did:

convert frame.tif -fill black -colorize 100%% frame.tif
convert frame.tif -channel a -evaluate multiply 0.6 +channel result.tif

I had to add the additional line of code to your last suggestion. This way there is a opacity with the black border and not opacity against the original image.

Thanks for your help!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Windows equivalent of: -fill "black(25%)" -colorize 100

Post by fmw42 »

Sorry, I still do not understand. If you explain what you want to happen in the center where it is now fully transparent and what you want to happen on the border, then perhaps I can suggest something better. What are you going to do with the result.tif afterwards? Are you going to impose that over some background image? What is you final objective.?
josephs
Posts: 40
Joined: 2014-04-08T10:13:43-07:00
Authentication code: 6789

Re: Windows equivalent of: -fill "black(25%)" -colorize 100

Post by josephs »

The final objective was creating a drop shadow. I am aware there is a drop shadow command but wanted to give this a try. Basically I will take the output as described, offset it, then composite the original image on top.
Post Reply