Error in GDI+

A generic error occurred in GDI+

Possible Solutions

This is a very general error that usually occurs when the savepath for an image is incorrect. Check that the folder structure that is specified in the savepath actually exists (create any folders that don't) and make sure that when the savepath + imgName are concatenated together it creates a valid path (make sure that there is a slash between the end of the savepath and the image name.