MDL-32471 introducing generate_image_thumbnail() function
MDL-32471 introducing generate_image_thumbnail() function

This helper function uses GD library to generate a thumbnail of the
given image file.

dilawar/moodle