function PNGResample(imgFile, maxWidth, maxHeight)


The PNGResample function resizes a PNG image (imgFile) using the Lanczos3 resampling method to keep the best possible level of detail.
This function also retains the original image's aspect-ratio, and chooses between maxWidth and maxHeight whichever one would result in a smaller image. If you wish one of these two parameters to be ignored, simply set it to 0 (zero).


Example:

{
 PNGResample('./some_picture.png', 800, 600);
}