You are here

Interlace.php in Image Effects 8.2

File

src/Plugin/ImageToolkit/Operation/gd/Interlace.php
View source
<?php

namespace Drupal\image_effects\Plugin\ImageToolkit\Operation\gd;

use Drupal\image_effects\Plugin\ImageToolkit\Operation\InterlaceTrait;
use Drupal\system\Plugin\ImageToolkit\Operation\gd\GDImageToolkitOperationBase;

/**
 * Defines GD Interlace operation.
 *
 * @ImageToolkitOperation(
 *   id = "image_effects_gd_interlace",
 *   toolkit = "gd",
 *   operation = "interlace",
 *   label = @Translation("Interlace"),
 *   description = @Translation("Create an interlaced PNG or GIF or progressive JPEG image.")
 * )
 */
class Interlace extends GDImageToolkitOperationBase {
  use InterlaceTrait;

  /**
   * {@inheritdoc}
   */
  protected function execute(array $arguments) {
    return imageinterlace($this
      ->getToolkit()
      ->getResource(), TRUE);
  }

}

Classes

Namesort descending Description
Interlace Defines GD Interlace operation.