Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: resize image gravity center +repage

$
0
0
The -gravity center option is ignored by the -resize option. Your command translates to this:
using (MagickImageCollection images = new MagickImageCollection("Source.gif"))
{
  foreach (MagickImage image in images)
  {
    image.Resize(new MagickGeometry("240x320^"));
  }

  images.RePage();
  images.Write("Output.gif");
}

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>