Image Manipulation Codes (PNMImage)

Is there a good clean way to resize PNMImage instances with sampling algorithm selection (NN, Bilinear, Bicubic)? That is, I want to take an image of size MxN and resize it to size PxQ using any one of these resampling algorithms. If not, I have a bunch of C++ code for doing this that I can translate into P3D/python code and share. Just thought I would check first … no sense in reinventing the wheel.


The PNMImage has a box filter and a Gaussian filter built-in. Other than that, you’re on your own. :slight_smile: