Composite opaque images of different size

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
snibgo
Posts: 9378
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Composite opaque images of different size

Post by snibgo » 2016-05-13T12:01:31-07:00

Input images:

Code: Select all

convert -size 120x120 gradient:red-white grad_r.png

convert -size 100x100 gradient:green-white -rotate 90 grad_g.png
v6 and v7 produce identical images:
Image
Image

Command under test:

Code: Select all

convert ^
    grad_r.png ^
    grad_g.png ^
    -gravity Center -compose %%L -composite ^
    grad_rg_%%L.png
Comparing outputs from v6.9.2-5 and v7.0.1-3, compose operators "ChangeMask", "Clear", and "Src" have major differences.

Below are the results. In each pair, the first is v6, the second is v7.

ChangeMask:
Image
Image

Clear:
Image
Image

Src:
Image
Image
snibgo's IM pages: im.snibgo.com

Post Reply