GravityType argument ignored in Magick::Image::extent

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
muni
Posts: 1
Joined: 2012-05-13T10:44:16-07:00
Authentication code: 13

GravityType argument ignored in Magick::Image::extent

Post by muni »

Hello,
I'm using Magick++ library shipped with ImageMagick 6.7.6.9 and I have a problem with setting gravity while extending an image with Image::extent() method. No matter what value of gravity_ I pass, the original portion of an image stays at top left corner of resulting image. Here is some sample code that I've tested:

Code: Select all

#include <Magick++.h>

using namespace Magick;

int main(int argc, char **argv)
{
    Image image(argv[1]);

    image.extent(Geometry(800, 600), CenterGravity);
    image.write("extended.png");
    return 0;
}
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: GravityType argument ignored in Magick::Image::extent

Post by magick »

We can reproduce the problem you reported and have a patch. Look for it in the ImageMagick-6.7.6-10 release within a week or two. Thanks.
Post Reply