Page 2 of 2

Re: Drop shadow on watermark image

Posted: 2017-01-23T21:03:56-07:00
by philmoz
Thanks. I think there is a problem with -gravity center as well.
Example - this command:

Code: Select all

convert background.png foreground.png -background none -gravity center -composite merged.png
In 6.9.7-3 this centers the foreground image on the background image.
In 7.0.4-5 the foreground is placed in the top left corner.

Re: Drop shadow on watermark image

Posted: 2017-01-23T21:27:12-07:00
by fmw42
Works fine for me in IM 7.0.4-5 Q16 Mac OSX

Code: Select all

magick logo: rose: -gravity center -composite tmp7.png
Perhaps one of your two input images have a virtual canvas with offset. Try adding +repage after reading the two images.

Re: Drop shadow on watermark image

Posted: 2017-01-23T21:33:34-07:00
by philmoz
Images are simple PNG files. Adding +repage has no effect
The 'magick logo: rose: -gravity center -composite tmp7.png' works for me as well; but convert does not.

Re: Drop shadow on watermark image

Posted: 2017-01-23T21:56:25-07:00
by philmoz
This is weird.
The following commands produce different results in 7.0.4-5 on OS X, even though the 'convert' app is just s symlink to 'magick'.

Code: Select all

convert background.png foreground.png -background none -gravity center -composite merged.png

Code: Select all

magick background.png foreground.png -background none -gravity center -composite merged.png
The 'magick' command properly centers the foreground image; but 'convert' places it in the top left corner.

Re: Drop shadow on watermark image

Posted: 2017-01-24T00:29:46-07:00
by fmw42
There does seem to be a bug using "magick convert". Using just magick or just convert work fine. I submitted a bug report at viewtopic.php?f=3&t=31284