You are here

class Interlace in Image Effects 8

Same name in this branch
  1. 8 src/Plugin/ImageToolkit/Operation/gd/Interlace.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\gd\Interlace
  2. 8 src/Plugin/ImageToolkit/Operation/imagemagick/Interlace.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\Interlace
Same name and namespace in other branches
  1. 8.3 src/Plugin/ImageToolkit/Operation/imagemagick/Interlace.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\Interlace
  2. 8.2 src/Plugin/ImageToolkit/Operation/imagemagick/Interlace.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\Interlace

Defines ImageMagick Interlace operation.

Plugin annotation


@ImageToolkitOperation(
  id = "image_effects_imagemagick_interlace",
  toolkit = "imagemagick",
  operation = "interlace",
  label = @Translation("Interlace"),
  description = @Translation("Create an interlaced PNG or GIF or progressive JPEG image.")
)

Hierarchy

  • class \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\Interlace extends \Drupal\imagemagick\Plugin\ImageToolkit\Operation\imagemagick\ImagemagickImageToolkitOperationBase uses InterlaceTrait

Expanded class hierarchy of Interlace

File

src/Plugin/ImageToolkit/Operation/imagemagick/Interlace.php, line 19

Namespace

Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick
View source
class Interlace extends ImagemagickImageToolkitOperationBase {
  use InterlaceTrait;

  /**
   * {@inheritdoc}
   */
  protected function execute(array $arguments) {
    $this
      ->getToolkit()
      ->addArgument("-interlace {$arguments['type']}");
    return TRUE;
  }

}

Members