You are here

public function ImagemagickToolkit::setColorspace in ImageMagick 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/ImageToolkit/ImagemagickToolkit.php \Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit::setColorspace()

Sets the source colorspace.

Parameters

string $colorspace: The image colorspace.

Return value

$this

1 call to ImagemagickToolkit::setColorspace()
ImagemagickToolkit::parseFileViaIdentify in src/Plugin/ImageToolkit/ImagemagickToolkit.php
Parses the image file using the 'identify' executable.

File

src/Plugin/ImageToolkit/ImagemagickToolkit.php, line 795

Class

ImagemagickToolkit
Provides ImageMagick integration toolkit for image manipulation.

Namespace

Drupal\imagemagick\Plugin\ImageToolkit

Code

public function setColorspace($colorspace) {
  $this->colorspace = Unicode::strtoupper($colorspace);
  return $this;
}