コード例 #1
0
 /**
  * Opens an image and applies to filters in the given preset.
  * @param string $path the image path.
  * @param ImagePreset $preset the preset name.
  * @return ImageInterface the image.
  */
 public function openImageWithPreset($path, $preset)
 {
     return $preset->applyFilters($this->openImage($path));
 }