image_toolkit_invoke

  1. drupal
    1. drupal6
    2. drupal7
Versionen
drupal6 image_toolkit_invoke($method, $params = array())
drupal7 image_toolkit_invoke($method, stdClass $image, array $params = array())

Invokes the given method using the currently selected toolkit.

Übergabeparameter

$method A string containing the method to invoke.

$image An image object returned by image_load().

$params An optional array of parameters to pass to the toolkit method.

Rückgabewert

Mixed values (typically Boolean indicating successful operation).

Verwandte Themen

▾ 6 functions call image_toolkit_invoke()

image_crop in includes/image.inc
Crop an image to the rectangle specified by the given rectangle.
image_desaturate in includes/image.inc
Convert an image to grayscale.
image_load in includes/image.inc
Load an image file and return an image object.
image_resize in includes/image.inc
Resize an image to the given dimensions (ignoring aspect ratio).
image_rotate in includes/image.inc
Rotate an image by the given number of degrees.
image_save in includes/image.inc
Close the image and save the changes to a file.

Code

includes/image.inc, line 91

<?php
function image_toolkit_invoke($method, stdClass $image, array $params = array()) {
  $function = 'image_' . $image->toolkit . '_' . $method;
  if (drupal_function_exists($function)) {
    array_unshift($params, $image);
    return call_user_func_array($function, $params);
  }
  watchdog('image', 'The selected image handling toolkit %toolkit can not correctly process %function.', array('%toolkit' => $image->toolkit, '%function' => $function), WATCHDOG_ERROR);
  return FALSE;
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen