I'm using the following code to crop a region of interest in an image, then save only the cropped section to a new file:
I'm using Magick.NET-Q8-x86 Version 7.0.0.0009.
Thanks!
Dim g As New ImageMagick.MagickGeometry(rect)
image.Crop(g)
image.RePage()
image.Write(fileName)
It works great when saving as an image (.png, .jpg, etc.). However, when the output is PDF, the result is a blank PDF document. If I comment out the image.RePage() line, the crop works as expected... it's just the repage that's not working. Is this a known issue? Are there any workarounds?I'm using Magick.NET-Q8-x86 Version 7.0.0.0009.
Thanks!