image_scale_and_crop
Related topics
| Name | Description |
|---|---|
| Image toolkits | Drupal'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()
| Name | Location | Description |
|---|---|---|
| image_scale_and_crop | includes/image.inc | Scales 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()
| Name | Location | Description |
|---|---|---|
| image_get_info | includes/image.inc | Get details about an image. |
| image_scale_and_crop | includes/image.inc | Scales 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_invoke | includes/image.inc | Invokes the given method using the currently selected toolkit. |
