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

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

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

Post 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.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

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

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply