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
Posts: 1
Joined: 2013-01-30T03:33:32-07:00
Authentication code: 6789

gravity wont work in Magick::Image::extent

Post by niakrisn » 2013-01-30T03:42:05-07:00


I have tested these code with ImageMagick- and ImageMagick-, 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;"62701.jpg");
    image.resize(Geometry(460, 380));
    image.extent(Geometry(460, 380), Color("white"), CenterGravity);

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

User avatar
Site Admin
Posts: 11077
Joined: 2003-05-31T11:32:55-07:00

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

Post by magick » 2013-01-30T03:59:42-07:00

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