Add an image to this gallery.
public addImage ( array $image_data, boolean $default = false ) : integer | ||
$image_data | array | The image to add. Keys include:
image_filename - The filename of the image [REQUIRED]. data - The binary image data [REQUIRED] image_caption - The caption/description. Defaults to filename. image_type - The MIME type of the image. Attempts to detect.'image_caption', and 'data'. Optional keys include 'image_filename' and 'image_type' |
$default | boolean | Make this image the new default tile image. |
리턴 | integer | The id of the new image. |