Page 1 of 1

convert -draw "image 'dissolve ...'..." doesn't work

Posted: 2011-06-23T08:28:04-07:00
by glennrp
When I do this

Code: Select all

convert frame.png -draw 'image "dissolve 10x100" 100,100 0,0 text.png' combined.png
it behaves like -draw 'image over ...' (i.e., the text isn't transparent). I tried 100x10, and tried swapping the quotes and double-quotes but still got the same result.

Re: convert -draw "image 'dissolve ...'..." doesn't work

Posted: 2011-06-25T00:34:51-07:00
by anthony
dissolve defaults is a 'over' when it has now arguments defined.

As such...

Code: Select all

convert granite: -gravity center -draw 'image dissolve 0,0,0,0 "rose:" ' show
:
comes out just like

Code: Select all

convert granite: -gravity center -draw 'image over 0,0,0,0 "rose:" ' show:
However a quick test seems to show that 'draw' composition does not make use of the compose:args

Here however is the command for using -composite for the dissolved overlay

Code: Select all

   convert granite: rose: -alpha on  -gravity center   \
              -compose dissolve  -define compose:args=50    -composite  \
              show:
Note the define 'name' must be exactly as given or it does not work.