You are here

function retina_images_image_resize_effect in Retina Images 7

Image effect callback; Resize an image resource.

Parameters

$image: An image object returned by image_load().

$data: An array of attributes to use when performing the resize effect with the following items:

  • "width": An integer representing the desired width in pixels.
  • "height": An integer representing the desired height in pixels.

Return value

TRUE on success. FALSE on failure to resize image.

See also

image_resize()

1 string reference to 'retina_images_image_resize_effect'
retina_images_image_effect_info_alter in ./retina_images.module
Implements hook_image_effect_info_alter

File

./retina_images.module, line 181
This module provides an image effect to assist in outputing high resolution images.

Code

function retina_images_image_resize_effect(&$image, $data) {
  retina_images_multiply_data_dimensions($data);
  return image_resize_effect($image, $data);
}