You are here

function media_acquiadam_image_style_path in Media: Acquia DAM 7

Generate the destination URI for the derivative.

Parameters

int $asset_id: The ID of the asset deriviatives are being created for.

array $style: The image style information.

string $image_uri: The image URI of the asset.

Return value

string The destination URI.

3 calls to media_acquiadam_image_style_path()
media_acquiadam_create_asset_image_derivatives in includes/media_acquiadam.image.inc
Generate all image derivatives for an asset.
media_acquiadam_flush_image_styles in includes/media_acquiadam.cache.inc
Clear the cached external images of assets.
media_acquiadam_image_style_deliver in includes/media_acquiadam.image.inc
Implementation of image_style_deliver().

File

includes/media_acquiadam.image.inc, line 153
Code for working with DAM image styles.

Code

function media_acquiadam_image_style_path($asset_id, array $style, $image_uri) {
  return vsprintf('%s://styles/%s/%d/%s', [
    file_default_scheme(),
    $style['name'],
    $asset_id,
    file_uri_target($image_uri),
  ]);
}