Syntax

createImage( data )

Creates an image on Digistore24.

Access rights

Full access required.

Parameters

  • name: string[63]

  • image-url: URL from which Digistore24 copies the image

  • data – Property fields of the image. Possible values are:

    • usage_type: Purpose of the images, e.g. ‘product'. See the output of getGlobalSettings(), there the field image_usage_type.

    • alt_tag

Return data

Array(
    [image_id] => A1B2C3D4
    [image_url] => https://www.digitore24.com/some-image-url
)