This project has moved and is read-only. For the latest updates, please go here.

Cropping Tiff Images are not displaying correctly.

Sep 15, 2014 at 9:48 PM
I am using Magick.NET to crop .tiff images. In the example below, I cropped it through the middle of the ending 'e'. When I let Windows do a preview on this, the windows preview is absolutely correct, and the crop is exactly where it should be. However, if I open this in photoshop, the crop mark is at about 2/3 of the way from the left, totally in the wrong part. And photoshop does not show the whole image?

What am I doing wrong here that the cropping is off by so much?

The image can be downloaded at

MagickImage img = new MagickImage(strFileName);
img.Crop(new MagickGeometry(x, y, width, height));
img.Page = new MagickGeometry(0, 0, width, height);
Sep 15, 2014 at 10:03 PM
Why are you setting the Page? Maybe this is confusing Photoshop?
Sep 15, 2014 at 11:00 PM
I pulled that code from a prior discussion. I removed it, recompiled, and tried it again. No change.
Sep 16, 2014 at 6:17 AM
I apologize, as it turned out, I had bad information from my user. It was not the crop that was causing problems, it was the resize. I am sorry about this, but they told me they were cropping it, and they were not, they were resizing it.

Please ignore this ticket, I opened a new ticket with my resize code.