Is there any way with magick++ to use gravity parameter ( Magick::CenterGravity ) when croping/resizing images? Need to crop from the center (or count pixels to crop from the right/bottom) i.e. something like this gravity parameter from command line
The Magick++ extent() method is overloaded and accept a gravity argument. Use one of extent ( const Geometry &geometry_, const GravityType gravity_ ) or extent ( const Geometry &geometry_, const Color &backgroundColor_, const GravityType gravity_ ).