Page 1 of 1

-draw "image DstOver

Posted: 2019-03-16T08:44:33-07:00
by Marcel1971a
Hi, i am using an older version of IM 6.8.7-9 and used the -draw command to overlay to images.

Something like this:

Code: Select all

convert -background none -fill blue -font Arial -pointsize 42 label:A -draw "image DstOver 10,10 25,30 'rose:' " out.png
The A label will be on top of the rose image.

However, in the latest IM release the A label will always be behind the rose: image, not matter if i use DstOver or Over....

Can you comfirm this?

Regards,
Marcel

Re: -draw "image DstOver

Posted: 2019-03-16T10:47:41-07:00
by fmw42
Your command works fine for me on IM 6.9.10.33 Q16 Mac OSX. The A is over the rose. What is your platform? What exact release are you calling the "current" one?

Re: -draw "image DstOver

Posted: 2019-03-16T10:51:15-07:00
by fmw42
Agreed, it does not work properly on IM 7.0.8.33 Q16 Mac OSX. The A is partially behind the rose. Please report this on the Bugs forum and link back to your topic here.

Re: -draw "image DstOver

Posted: 2019-03-16T11:15:32-07:00
by magick
Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ https://www.imagemagick.org/download/beta/ by sometime tomorrow.

Re: -draw "image DstOver

Posted: 2019-03-16T11:35:04-07:00
by fmw42
Here is an alternate way to do this that works and probably the better way without -draw.

Code: Select all

magick -background none -fill blue -font Arial -pointsize 42 label:"A" \( rose: -resize 25x30! \) -geometry +10+10 -compose dstover -composite out.png

Re: -draw "image DstOver

Posted: 2019-03-16T14:10:44-07:00
by Marcel1971a
Thanks all for the quick response.
@frm42, i will have a look at your solution if it fits in my situation. Thanks for that code example.

Regards,
Marcel