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|false) The resulting image resource or GdImage instance on success, false on failure.
Defined at:

Description

Loads an image resource for editing.

Related Functions

_load_image_to_edit_path, format_to_edit, get_image_send_to_editor, wp_image_editor, wp_load_image

Top Google Results

User discussions

wpseek mobile