Possible bug (7.0.10) - "Composite" flips an image

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.
Locked
Dmitry
Posts: 1
Joined: 2020-03-20T14:24:54-07:00
Authentication code: 1152

Possible bug (7.0.10) - "Composite" flips an image

Post by Dmitry »

After upgrading from 7.0.8 to 7.0.10, I got wrong results with my tool which uses ImageMagick for image manipulations - my images became flipped vertically.
I found that "composite" operation is a place where the "flip" happens.
I'm using C++, here's my code:

Code: Select all

Magick::Image out96(in96); // in96 is a background image
out96.composite(x96, MagickCore::GravityType::CenterGravity, MagickCore::CompositeOperator::OverCompositeOp); // x96 is composed but flipped
out96.composite(x96, MagickCore::GravityType::CenterGravity, MagickCore::CompositeOperator::CopyAlphaCompositeOp);
out96.write((outputDir / L"96x96" / filenameTga).string());
x96 is composed over, but it's flipped. The background (out96) works normally, it doesn't flip.
x96 itself, when written to a file, is not flipped.

Locked