Skip navigation
Help

Search for image

Classes

NameLocationDescription
ImageAdminStylesUnitTestdrupal/modules/image/image.testTests creation, deletion, and editing of image styles and effects.
ImageEffectsUnitTestdrupal/modules/image/image.testUse the image_test.module's mock toolkit to ensure that the effects are properly passing parameters to the image toolkit.
ImageFieldDisplayTestCasedrupal/modules/image/image.testTest class to check that formatters and display settings are working.
ImageFieldTestCasedrupal/modules/image/image.testThis class provides methods specifically for testing Image's field handling.
ImageFieldValidateTestCasedrupal/modules/image/image.testTest class to check for various validations.
ImageStylesPathAndUrlUnitTestdrupal/modules/image/image.testTests the functions for generating paths and URLs for image styles.
ImageToolkitGdTestCasedrupal/modules/simpletest/tests/image.testTest the core GD image manipulation functions.
ImageToolkitTestCasedrupal/modules/simpletest/tests/image.testBase class for image manipulation testing.
ImageToolkitUnitTestdrupal/modules/simpletest/tests/image.testTest that the functions in image.inc correctly pass data to the toolkit.

Constants

NameLocationDescription
IMAGE_STORAGE_DEFAULTdrupal/modules/image/image.moduleImage style constant for module-defined presets in code.
IMAGE_STORAGE_EDITABLEdrupal/modules/image/image.moduleImage style constant to represent an editable preset.
IMAGE_STORAGE_MODULEdrupal/modules/image/image.moduleImage style constant to represent any module-based preset.
IMAGE_STORAGE_NORMALdrupal/modules/image/image.moduleImage style constant for user presets in the database.
IMAGE_STORAGE_OVERRIDEdrupal/modules/image/image.moduleImage style constant for user presets that override module-defined presets.

Files

NameLocationDescription
drupal/modules/image/image.admin.incdrupal/modules/image/image.admin.incAdministration pages for image settings.
drupal/modules/image/image.api.phpdrupal/modules/image/image.api.phpHooks related to image styles and effects.
drupal/modules/image/image.effects.incdrupal/modules/image/image.effects.incFunctions needed to execute image effects provided by Image module.
drupal/modules/image/image.field.incdrupal/modules/image/image.field.incImplement an image field, based on the file module's file field.
drupal/modules/system/image.gd.incdrupal/modules/system/image.gd.incGD2 toolkit for image manipulation within Drupal.
drupal/includes/image.incdrupal/includes/image.incAPI for manipulating images.
drupal/modules/image/image.infodrupal/modules/image/image.infoname = Image description = Provides image manipulation tools. package = Core version = VERSION core = 7.x dependencies[] = file files[] = image.test configure = admin/config/media/image-styles
drupal/modules/image/image.installdrupal/modules/image/image.installInstall, update and uninstall functions for the image module.
drupal/modules/image/image.moduledrupal/modules/image/image.moduleExposes global functionality for creating image styles.
drupal/modules/simpletest/tests/image.testdrupal/modules/simpletest/tests/image.testTests for core image handling API.
drupal/modules/image/image.testdrupal/modules/image/image.testTests for image.module.
drupal/modules/image/tests/image_module_test.infodrupal/modules/image/tests/image_module_test.infoname = Image test description = Provides hook implementations for testing Image module functionality. package = Core version = VERSION core = 7.x files[] = image_module_test.module hidden = TRUE
drupal/modules/image/tests/image_module_test.moduledrupal/modules/image/tests/image_module_test.moduleProvides Image module hook implementations for testing purposes.
drupal/modules/simpletest/tests/image_test.infodrupal/modules/simpletest/tests/image_test.infoname = "Image test" description = "Support module for image toolkit tests." package = Testing version = VERSION core = 7.x hidden = TRUE
drupal/modules/simpletest/tests/image_test.moduledrupal/modules/simpletest/tests/image_test.moduleHelper module for the image tests.

Functions & methods

NameLocationDescription
FileValidatorTest::testFileValidateImageResolutiondrupal/modules/simpletest/tests/file.testThis ensures the resolution of a specific file is within bounds. The image will be resized if it's too large.
FileValidatorTest::testFileValidateIsImagedrupal/modules/simpletest/tests/file.testThis ensures a specific file is actually an image.
file_validate_image_resolutiondrupal/includes/file.incVerify that image dimensions are within the specified maximum and minimum.
file_validate_is_imagedrupal/includes/file.incCheck that the file is recognized by image_get_info() as an image.
form_type_image_button_valuedrupal/includes/form.incHelper function to determine the value for an image button form element.
hook_image_default_stylesdrupal/modules/image/image.api.phpProvide module-based image styles for reuse throughout Drupal.
hook_image_effect_infodrupal/modules/image/image.api.phpDefine information about image effects provided by a module.
hook_image_effect_info_alterdrupal/modules/image/image.api.phpAlter the information provided in hook_image_effect_info().
hook_image_styles_alterdrupal/modules/image/image.api.phpModify any image styles provided by other modules or the user.
hook_image_style_deletedrupal/modules/image/image.api.phpRespond to image style deletion.
hook_image_style_flushdrupal/modules/image/image.api.phpRespond to image style flushing.
hook_image_style_savedrupal/modules/image/image.api.phpRespond to image style updating.
hook_image_toolkitsdrupal/modules/system/system.api.phpDefine image toolkits provided by this module.
ImageAdminStylesUnitTest::createSampleImagedrupal/modules/image/image.testGiven an image style, generate an image.
ImageAdminStylesUnitTest::getImageCountdrupal/modules/image/image.testCount the number of images currently create for a style.
ImageAdminStylesUnitTest::getInfodrupal/modules/image/image.test
ImageAdminStylesUnitTest::testDefaultStyledrupal/modules/image/image.testTest to override, edit, then revert a style.
ImageAdminStylesUnitTest::testStyledrupal/modules/image/image.testGeneral test to add a style, add/remove/edit effects to it, then delete it.
ImageAdminStylesUnitTest::testStyleReplacementdrupal/modules/image/image.testTest deleting a style and choosing a replacement style.
ImageEffectsUnitTest::getInfodrupal/modules/image/image.test
ImageEffectsUnitTest::setUpdrupal/modules/image/image.testGenerates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…