function ImageToolkitInterface::save

Writes an image resource to a destination file.

Parameters

object $image: An image object.

string $destination: A string file URI or path where the image should be saved.

Return value

bool TRUE or FALSE, based on success.

See also

image_save()

2 methods override ImageToolkitInterface::save()
GDToolkit::save in drupal/core/modules/system/lib/Drupal/system/Plugin/ImageToolkit/GDToolkit.php
Implements \Drupal\system\Plugin\ImageToolkitInterface::save().
TestToolkit::save in drupal/core/modules/system/tests/modules/image_test/lib/Drupal/image_test/Plugin/ImageToolkit/TestToolkit.php
Implements \Drupal\system\Plugin\ImageToolkitInterface::save().

File

drupal/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitInterface.php, line 136
Contains \Drupal\system\Plugin\ImageToolkitInterface.

Class

ImageToolkitInterface
Defines an interface for image toolkits.

Namespace

Drupal\system\Plugin

Code

function save($image, $destination);