public static function convert($source, $destination, $options = [], $logger = null)
    {
        $instance = self::createInstance($source, $destination, $options, $logger);
        $instance->doConvert();
        //echo $instance->id;
    }
public static function convert($source, $destination, $options = [], $logger = null)
    {
        $instance = self::createInstance($source, $destination, $options, $logger);
        $instance->doConvert();
        //echo $instance->id;
    }
public static function convert ( $ source , $ destination , $ options = [ ] , $ logger = null ) { $ instance = self :: createInstance ( $ source , $ destination , $ options , $ logger ) ; $ instance -> doConvert ( ) ; //echo $instance->id; }
Convert an image to webp.

@param   string  $source              path to source file
@param   string  $destination         path to destination
@param   array   $options (optional)  options for conversion
@param   \WebPConvert\Loggers\BaseLogger $logger (optional)
@return  void
Convert an image to webp .