protected function ImagemagickIdentify::doSetMetadata in ImageMagick 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/FileMetadata/ImagemagickIdentify.php \Drupal\imagemagick\Plugin\FileMetadata\ImagemagickIdentify::doSetMetadata()
File
- src/
Plugin/ FileMetadata/ ImagemagickIdentify.php, line 176
Class
- ImagemagickIdentify
- FileMetadata plugin for ImageMagick's identify results.
Namespace
Drupal\imagemagick\Plugin\FileMetadataCode
protected function doSetMetadata($key, $value) {
$this
->validateKey($key, __FUNCTION__);
switch ($key) {
case 'source_local_path':
$this->metadata['source_local_path'] = $value;
return TRUE;
case 'frames_count':
return FALSE;
default:
$this->metadata['frames'][0][$key] = $value;
return TRUE;
}
}