image.module

Exposes global functionality for creating image styles.

File

modules/image/image.module

Functions

Name Description
image_default_style_revert Reverts the changes made by users to a default image style.
image_default_style_save Saves a default image style to the database.
image_effects Loads all image effects from the database.
image_effect_apply Applies an image effect to the image object.
image_effect_definitions Returns a set of image effects.
image_effect_definition_load Loads the definition for an image effect.
image_effect_delete Deletes an image effect.
image_effect_load Loads a single image effect.
image_effect_save Saves an image effect.
image_field_delete_field Implements hook_field_delete_field().
image_field_delete_instance Implements hook_field_delete_instance().
image_field_update_field Implements hook_field_update_field().
image_field_update_instance Implements hook_field_update_instance().
image_file_delete Implements hook_file_delete().
image_file_download Implements hook_file_download().
image_file_move Implements hook_file_move().
image_filter_keyword Accepts a keyword (center, top, left, etc) and returns it as a pixel offset.
image_flush_caches Implements hook_flush_caches().
image_form_system_file_system_settings_alter Implements hook_form_FORM_ID_alter().
image_help Implements hook_help().
image_image_default_styles Implements hook_image_default_styles().
image_image_style_delete Implements hook_image_style_delete().
image_image_style_save Implements hook_image_style_save().
image_menu Implements hook_menu().
image_path_flush Clears cached versions of a specific file in all styles.
image_permission Implements hook_permission().
image_styles Gets an array of all styles and their settings.
image_style_create_derivative Creates a new image derivative based on an image style.
image_style_delete Deletes an image style.
image_style_deliver Page callback: Generates a derivative, given a style and image path.
image_style_effects Loads all the effects for an image style.
image_style_flush Flushes cached media for a style.
image_style_load Loads a style by style name or ID.
image_style_options Gets an array of image styles suitable for using as select list options.
image_style_path Returns the URI of an image when using a style.
image_style_path_token Generates a token to protect an image style derivative.
image_style_save Saves an image style.
image_style_transform_dimensions Determines the dimensions of the styled image.
image_style_url Returns the URL for an image derivative given a style and image path.
image_system_file_system_settings_submit Form submission handler for system_file_system_settings().
image_theme Implements hook_theme().
theme_image_style Returns HTML for an image using a specific image style.
_image_effect_definitions_sort Internal function for sorting image effect definitions through uasort().

Constants

Name Description
IMAGE_DERIVATIVE_TOKEN The name of the query parameter for image derivative tokens.
IMAGE_STORAGE_DEFAULT Image style constant for module-defined presets in code.
IMAGE_STORAGE_EDITABLE Image style constant to represent an editable preset.
IMAGE_STORAGE_MODULE Image style constant to represent any module-based preset.
IMAGE_STORAGE_NORMAL Image style constant for user presets in the database.
IMAGE_STORAGE_OVERRIDE Image style constant for user presets that override module-defined presets.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!image!image.module/7.x