You can't interrogate the file dimensions, but you can interrogate the file size, which is really all that matters with regard to your GD issues. By default, the max upload size is whatever the upload_max_filesize setting is in your PHP.ini. But you can override that in the getCMSFields() function:
SWFUploadConfig::set_var('file_size_limit','1MB');