[TEXT](http://kitt.us/photo.png
Crop has been working perfectly for a long time. But on this image, it resets the image to 1x1 pixel. I can't figure out why this is not working.
I suspect it's something specific to this image, but I can't see the problem. The x,y,width,height are not relevant, pick a value. Whatever you put, the resulting image is 1x1 pixel.
Here is my code:
Crop has been working perfectly for a long time. But on this image, it resets the image to 1x1 pixel. I can't figure out why this is not working.
I suspect it's something specific to this image, but I can't see the problem. The x,y,width,height are not relevant, pick a value. Whatever you put, the resulting image is 1x1 pixel.
Here is my code:
using (MagickImage img = new MagickImage(strFileName))
{
img.Crop(new MagickGeometry(x, y, width, height));
img.Write(strCrop);
}
I have also tried this. using (MagickImage img = new MagickImage(strFileName))
{
img.Crop(new MagickGeometry(x, y, width, height));
img.RePage();
img.Write(strCrop);
}