image_scale_and_crop

Related topics

Namesort iconDescription
Image toolkitsDrupal's image toolkits provide an abstraction layer for common image file manipulations like scaling, cropping, and rotating. The abstraction frees module authors from the need to support multiple image libraries, and it allows site...

Functions that call image_scale_and_crop()

Namesort iconLocationDescription
image_scale_and_cropincludes/image.incScales an image to the exact width and height given. Achieves the target aspect ratio by cropping the original image equally on both sides, or equally on the top and bottom. This function is, for example, useful to create uniform sized avatars from...

Functions called by image_scale_and_crop()

Namesort iconLocationDescription
image_get_infoincludes/image.incGet details about an image.
image_scale_and_cropincludes/image.incScales an image to the exact width and height given. Achieves the target aspect ratio by cropping the original image equally on both sides, or equally on the top and bottom. This function is, for example, useful to create uniform sized avatars from...
image_toolkit_invokeincludes/image.incInvokes the given method using the currently selected toolkit.
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.