Introduction - If you have any usage issues, please Google them yourself
This script take the image of the parameter one, resize and resample this and save the resampled image in the dir of parameter 2, the third parameter is for set the dimensions (you should change this in the script code.