Interlace.php in Image Effects 8
Same filename in this branch
Same filename and directory in other branches
File
src/Plugin/ImageToolkit/Operation/gd/Interlace.phpView 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);
}
}