* @return bool|array False, if no image was created. Metadata array on success.

* An array can specify positioning of the crop area. Default false.

* @param bool|array $crop Optional. Whether to crop images to specified height and width or resize.

* @param bool $width Whether to crop the image to fit the dimensions. Default false.

* @param string $name The image size name.

* Registers an image size for the post thumbnail .

* Registers an image size for the post thumbnail

* 3. If true, images will be cropped to the specified dimensions using center positions.

* Images will be cropped to the specified dimensions within the defined crop area.

* - x_crop_position accepts 'left' 'center', or 'right'.

* 2. If an array in the form of array( x_crop_position, y_crop_position ):

* 1. If false (default), images will not be cropped.

* Cropping behavior is dependent on the value of $crop:

* within a specified width and height.

* Calculates dimensions and coordinates for a resized image that fits

* Retrieve calculated resize dimensions for use in WP_Image_Editor.

* portion of the image will be cropped out and resized to the required size.

* specified width and height. If $crop is true, the largest matching central

* Calculate dimensions and coordinates for a resized image that fits within a

* Retrieve calculated resized dimensions for use in WP_Image_Editor.

352 * @uses apply_filters() Calls 'image_resize_dimensions' on $orig_w, $orig_h, $dest_w, $dest_h and

353 * $crop to provide custom resize dimensions.

354 *

355 * @param int $orig_w Original width.

356 * @param int $orig_h Original height.

357 * @param int $dest_w New width.

358 * @param int $dest_h New height.

359 * @param bool $crop Optional, default is false. Whether to crop image or resize.

360 * @return bool|array False on failure. Returned array matches parameters for imagecopyresampled() PHP function.

377 * @uses apply_filters() Calls 'image_resize_dimensions' on $orig_w, $orig_h, $dest_w,

378 * $dest_h and $crop to provide custom resize dimensions.

379 *

380 * @param int $orig_w Original width in pixels.

381 * @param int $orig_h Original height in pixels.

382 * @param int $dest_w New width in pixels.

383 * @param int $dest_h New height in pixels.

384 * @param bool|array $crop Optional. Whether to crop image to specified height and width or resize.

385 * An array can specify positioning of the crop area. Default false.