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

New Post: Crop failing on image

$
0
0

No, sorry, it’s not. Take the image I attached to the problem ticket. Try this code. Resulting image is 1x1

string strFileName =@"C:\Temp\Photo.png";

string strCrop =Path.GetDirectoryName(strFileName) +@"\"+Guid.NewGuid().ToString() +Path.GetExtension(strFileName);

using (MagickImage img = newMagickImage(strFileName))

{

img.Crop(newMagickGeometry(10, 10, img.Width - 20, img.Height - 20));

img.RePage();

img.Write(strCrop);

}


Viewing all articles
Browse latest Browse all 3693

Trending Articles



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