Page 1 of 1

gravity wont work in Magick::Image::extent

Posted: 2013-01-30T03:42:05-07:00
by niakrisn
Hello,

I have tested these code with ImageMagick-6.6.3.10 and ImageMagick-6.8.0.7, original portion of an image stays at top left corner of resulting image.

Code: Select all

#include <Magick++.h>

using namespace Magick;

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

    image.read("62701.jpg");
    image.resize(Geometry(460, 380));
    image.extent(Geometry(460, 380), Color("white"), CenterGravity);
    image.write("extent_62701.jpg");

    return 0;
}
Maybe someone can clarify, am i doing right?

Re: gravity wont work in Magick::Image::extent

Posted: 2013-01-30T03:59:42-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.8.2-2 Beta available within a few days. Thanks.