18 declare(strict_types=1);
    37     public const ID = 
'greyscale';
    51         return GDEngine::class;
    60         $image = $this->
from($stream);
    61         if (!is_resource($image) && !$image instanceof \GdImage) {
    64         imagefilter($image, IMG_FILTER_GRAYSCALE, 50, 
true);
    68             $this->
to($image, $for_definition->getQuality()),
 
canHandleDefinition(FlavourDefinition $definition)
Check if a corresponding configuration can be processed by this Machine. 
 
dependsOnEngine()
Return the class name of the Engine that is required for this Machine to work. 
 
persist()
Define whether the generated flavor and the respective streams should be persisted, or whether they should only be generated and used in-memory. 
 
processStream(FileInformation $information, FileStream $stream, FlavourDefinition $for_definition)
 
to(\GdImage $image, int $quality=null)
Currently this is the only way to make a FileStream from a GD image resource. 
 
trait GdImageToStreamTrait
 
The base interface for all filesystem streams.