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

New Post: More than one crop results in a 1x1 (blank) image

$
0
0
I know it's not the most ideal but for code simplicity, I do 2 crops on the same image. It's actually a crop, then a scale, then another crop, but I got rid of the scale in the middle and was still able to reproduce the problem.

Using this image, if I do the following:
_magickImage.Crop(new MagickGeometry(1340, 47, 924, 1144));
_magickImage.Crop(new MagickGeometry(0, 0, 100, 100));
After the first call, I can see in the debugger that I now have a 924x1144 image. But no matter what dimensions I put in the second Crop call, it turns out a 1x1 jpeg. How do I get around this?

Viewing all articles
Browse latest Browse all 3693

Trending Articles