Page 2 of 2

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

Posted: 2018-02-17T23:10:06-07:00
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!

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

Posted: 2018-02-17T23:20:48-07:00
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!

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

Posted: 2018-02-17T23:40:01-07:00
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.?

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

Posted: 2018-02-17T23:51:54-07:00
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.