You are here

protected function GD::getImageFactory in ImageAPI Optimize GD 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/ImageAPIOptimizeProcessor/GD.php \Drupal\imageapi_optimize_gd\Plugin\ImageAPIOptimizeProcessor\GD::getImageFactory()

Returns the image factory.

Return value

\Drupal\Core\Image\ImageFactory The image factory.

File

src/Plugin/ImageAPIOptimizeProcessor/GD.php, line 54

Class

GD
Provides a ImageAPI Optimize processor for GD.

Namespace

Drupal\imageapi_optimize_gd\Plugin\ImageAPIOptimizeProcessor

Code

protected function getImageFactory() {
  return \Drupal::service('image.factory');
}