public static function convert($source, $destination, $options = [], $logger = null)
    {
        //return ConverterHelper::runConverterStack($source, $destination, $options, $logger);
        //return Convert::runConverterStack($source, $destination, $options, $logger);
        Stack::convert($source, $destination, $options, $logger);
    }
public static function convert($source, $destination, $options = [], $logger = null)
    {
        //return ConverterHelper::runConverterStack($source, $destination, $options, $logger);
        //return Convert::runConverterStack($source, $destination, $options, $logger);
        Stack::convert($source, $destination, $options, $logger);
    }
public static function convert ( $ source , $ destination , $ options = [ ] , $ logger = null ) { //return ConverterHelper::runConverterStack($source, $destination, $options, $logger); //return Convert::runConverterStack($source, $destination, $options, $logger); Stack :: convert ( $ source , $ destination , $ options , $ logger ) ; }
Convert jpeg or png into webp

Convenience method for calling Stack::convert.

@param  string  $source       The image to convert (absolute,no backslashes)
Image must be jpeg or png.
@param  string  $destination  Where to store the converted file (absolute path, no backslashes).
@param  array   $options      (optional) Array of named options, such as 'quality' and 'metadata'.
@param   \WebPConvert\Loggers\BaseLogger $logger (optional)

@throws \WebPConvert\Exceptions\WebPConvertException
@return void
Convert jpeg or png into webp