[magick-users] a composite setup question
Fred Weinhaus
fmw at alink.net
Mon Mar 17 16:12:34 PDT 2008
This works:
convert rose: -shave 10x10 +repage -bordercolor red -border 10x10 miff: | \
composite -blend 25% miff: rose: rose_blend.png
Puts trims a 10 pixel area around the image, then adds a 10 pixel red
border back around the trimmed image, then mixes the bordered and
original images together with 25/75 mix.
Unfortunately this does not seem to work. Perhaps Anthony can explain.
composite -blend 25% rose: \
\( rose: -shave 10x10 +repage -bordercolor red -border 10x10 \) \
+swap rose: rose_blend.png
I suspect that composite is not as versatile with respect to \( ...
\) notation as is convert.
>Use of the composite feature confuses me. I would like to do some
>overlays, but just to get a feel for the syntax and options. So ? is how
>would I possibly do this:
>
>Draw around the inside edge of a given sample image,
>
>1) i should be able to adjust the transparency value
>2) for this example, some generic color, like #FFFFFF or #000000
>
>If I can adjust the thickness that would be excellent! :)
>
>so, in principle the idea is:
>
>convert sample_image.png {over border around --inside-- edge of input
>image @ some thickness @ some color @ some transparency %]
>output_image.png
>
>thank you very very much for helping me understand this powerful program
>and your time to ramp up my knowledge of some features. Have a very good
>day. :-)
>
>~lamp
More information about the Magick-users
mailing list