bool resampleImage(string input, string output, (int width), (int height))
string input is the source filename
string output is the output filename
int width is the maximum new width (defaults to 150)
int height is the maxium new height (defaults to 100)
You can download the resample image source here. Have fun