I was able to crop white space from images using Bitmap. However, it is not supported in platforms other than Windows (https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only).
I'm using LibTiff from BitMiracle. How can I trim the surrounding white space from images using LibTiff?