FileValidatorTest::testFileValidateImageResolution in core/modules/simpletest/tests/file.test
This ensures the resolution of a specific file is within bounds. The image will be resized if it's too large.
image_get_info in core/includes/image.inc
Gets details about an image.
image_get_supported_extensions in core/includes/image.inc
Gets supported image extensions.
image_load in core/includes/image.inc
Loads an image file and returns an image object.
system_image_toolkit_settings in core/modules/system/system.admin.inc
Form builder; Configure site image toolkit usage.
UserPictureTestCase::testWithGDinvalidDimension in core/modules/user/tests/user.test
Do the test: GD Toolkit is installed Picture has invalid dimension
UserPictureTestCase::testWithGDinvalidSize in core/modules/user/tests/user.test
Do the test: GD Toolkit is installed Picture has invalid size
UserPictureTestCase::testWithoutGDinvalidDimension in core/modules/user/tests/user.test
Do the test: GD Toolkit is not installed Picture has invalid size
UserPictureTestCase::testWithoutGDinvalidSize in core/modules/user/tests/user.test
Do the test: GD Toolkit is not installed Picture has invalid size