_wp_make_subsizes


_wp_make_subsizes ( $new_sizes, $file, $image_meta, $attachment_id )

Access:
  • private
Parameters:
  • (array) new_sizes Array defining what sizes to create.
  • (string) file Full path to the image file.
  • (array) image_meta The attachment meta data array.
  • (int) attachment_id Attachment ID to process.
Returns:
  • (array) The attachment meta data with updated `sizes` array. Includes an array of errors encountered while resizing.
Defined at:

Description

Low-level function to create image sub-sizes.Updates the image meta after each sub-size is created. Errors are stored in the returned image metadata array.

Related Functions

wp_create_image_subsizes, wp_update_image_subsizes, wp_get_missing_image_subsizes, wp_getimagesize, wp_max_upload_size

Top Google Results

User discussions

wpseek mobile