Function __global->image_get_default_metadata

Definitions

sources/galleries2.php

  • Get image details from metadata.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$url URLPATH No No Blank (empty string) N/A N/A URL to the image (blank: not known yet)
$filename ?string No No Null N/A N/A Filename of image (null: not known yet)
$title string No No Blank (empty string) N/A N/A Title of image (blank: not known yet, calculate here if possible)
$cat string No No Blank (empty string) N/A N/A Gallery (blank: not known yet, calculate here if possible)

Returns

  • Tuple of image details
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get image details from metadata.
 *
 * @param  URLPATH $url URL to the image (blank: not known yet)
 * @param  ?string $filename Filename of image (null: not known yet)
 * @param  string $title Title of image (blank: not known yet, calculate here if possible)
 * @param  string $cat Gallery (blank: not known yet, calculate here if possible)
 * @return array Tuple of image details
 */

function image_get_default_metadata(string $url = '', ?string $filename = null, string $title = '', string $cat = '') : array