View and annotate image files with alignment using ASP.NET MVC

Hi GroupDocs,

When loading some images, the container/canvas that the image is loaded on is for some reason larger than the width/height of the image. This difference is causing some alignment issues when trying to annotate the image.

For example, please refer to here: Imgur: The magic of the Internet.

As you can see, the white part containing the image extends beyond the dimensions of the image itself. This results in the annotation on the image to be misaligned after saving. Result:

result.jpg (983.6 KB)

This is the original image used:

original.jpg (564.2 KB)

I suspect it has something to do with the image dimensions being too large.

Thanks

1 Like

@thchen,

This issue is reproduced at our end. Hence, we’ve logged it on GitHub and its under investigation. Please keep track of this link. As there’s any update, you’ll be notified here as well.

1 Like

@thchen,

We’ve fixed this issue. Before running the project make sure that @groupdocs.examples.jquery/annotation has been updated to the latest version and the latest version is v0.16.8.
Please note that this fix is applied to jQuery version of GroupDocs.Annotation project. However, this fix will also be available in Angular version soon.