src/Config.php
private function registerPostProcessor(string $type, string $class) : void
    {
        if (\class_exists($class)) {
            $interfaces = \class_implements($class);
            if (\in_array(PostProcessor::class, $interfaces, true)) {
                $this->postProcessorsMap[$type] = $class;
            } else {
                throw new ConfigException("Class {$class} don't implement interface " . PostProcessor::class);
            }
        } else {
            throw new ConfigException("Class {$class} not found");
        }
    }
private function registerPostProcessor(string $type, string $class) : void
    {
        if (\class_exists($class)) {
            $interfaces = \class_implements($class);
            if (\in_array(PostProcessor::class, $interfaces, true)) {
                $this->postProcessorsMap[$type] = $class;
            } else {
                throw new ConfigException("Class {$class} don't implement interface " . PostProcessor::class);
            }
        } else {
            throw new ConfigException("Class {$class} not found");
        }
    }
Register custom postprocessor or override default postprocessors

@param string $type
@param string $class class which implements \LireinCore\Image\PostProcessor interface
@throws ConfigException