load_image_to_edit


load_image_to_edit ( $attachment_id, $mime_type, $size = 'full' )

Parameters:
  • (int) attachment_id Attachment ID.
  • (string) mime_type Image mime type.
  • (string|int[]) size Optional. Image size. Accepts any registered image size name, or an array of width and height values in pixels (in that order). Default 'full'.
Returns:
  • (resource|GdImage|bool) The resulting image resource or GdImage instance on success, false on failure.
Defined at:

Description

Load an image resource for editing.

Related Functions

_load_image_to_edit_path, format_to_edit, wp_image_editor, get_image_send_to_editor, wp_load_image

Top Google Results

User discussions

wpseek mobile