gravity wont work in Magick::Image::extent

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
niakrisn
Posts: 1
Joined: 2013-01-30T03:33:32-07:00
Authentication code: 6789

gravity wont work in Magick::Image::extent

Post 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?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post 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.
Post Reply