protected function ImagemagickIdentify::doSetMetadata in ImageMagick 8.3
Same name and namespace in other branches
- 8.2 src/Plugin/FileMetadata/ImagemagickIdentify.php \Drupal\imagemagick\Plugin\FileMetadata\ImagemagickIdentify::doSetMetadata()
File
- src/
Plugin/ FileMetadata/ ImagemagickIdentify.php, line 163
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;
}
}