You are here

function bynder_custom_resolution_effect in Bynder 7

Implements callback 'effect callback' will return the image from the API, instead of modifying the image as intended

2 string references to 'bynder_custom_resolution_effect'
bynder_embed_url in includes/bynder.utils.inc
Create the embed url for a fragment.
bynder_image_effect_info in includes/bynder.formatters.inc
Implements hook_image_effect_info(). declare effect callbacks

File

includes/bynder.formatters.inc, line 131
bynder/includes/bynder.formatters.inc Formatters for Media: Bynder.

Code

function bynder_custom_resolution_effect(&$image, $data) {
  if (file_uri_scheme($image->source) == 'bynder') {
    if (!bynder_custom_resolution($image)) {
      watchdog('image', 'The image %file could not be colorize because the imagefilter() function is not available in this PHP installation.', array(
        '%file' => $image->source,
      ), WATCHDOG_ERROR);
      return FALSE;
    }
  }
  return true;
}