2020.04.27 07:16 "[Tiff] Risizing Tiff file Using NuGet BitMiracle Package", by Manjunath Cm

2020.04.27 09:26 "Re: [Tiff] Risizing Tiff file Using NuGet BitMiracle Package", by Roger Leigh

I am using NuGet Bitmiracle Package ( 2.4.638 ).

How do i resize a Tiff image of size say 500 * 1062 to smaller size say 80*170?

Hi,

This isn't something which the libtiff library is intended for. It's intended for reading and writing TIFF files, not for arbitrary image processing operations. You'll have to implement this yourself or use a different library, like e.g. OpenCV.

Typically, downscaling involves (a) low-pass filtering to blur the image and reduce high-frequency aliasing artefacts followed (b) decimation to resample the image at a lower frequency. There are numerous possibilities for both with varying tradeoffs. If you're not aware of the options, it would be worth your time to read up on the subject. Maybe begin by looking at Lanczos as a good high quality starting point.

If you need to this in large quantities at high speed, then it might be worth considering using GPU compute with e.g. OpenCL, Vulkan compute, CUDA or whatever your platform supports. Though for the small image size you gave as an example, it might not be worth the extra complexity.

Regards,

Roger