public static function serve($source, $destination, $options = [])
    {
        $options = array_merge(self::$defaultOptions, $options);

        try {
            ServeConvertedWebP::serve($source, $destination, $options);
        } catch (\Exception $e) {
            self::performFailAction(
                $options['fail'],
                $options['fail-when-original-unavailable'],
                $source,
                $destination,
                $options
            );
        }
    }
public static function serve($source, $destination, $options = [])
    {
        $options = array_merge(self::$defaultOptions, $options);

        try {
            ServeConvertedWebP::serve($source, $destination, $options);
        } catch (\Exception $e) {
            self::performFailAction(
                $options['fail'],
                $options['fail-when-original-unavailable'],
                $source,
                $destination,
                $options
            );
        }
    }
public static function serve ( $ source , $ destination , $ options = [ ] ) { $ options = array_merge ( self :: $ defaultOptions , $ options ) ; try { ServeConvertedWebP :: serve ( $ source , $ destination , $ options ) ; } catch ( \ Exception $ e ) { self :: performFailAction ( $ options [ 'fail' ] , $ options [ 'fail-when-original-unavailable' ] , $ source , $ destination , $ options ) ; } }
Serve webp image and handle errors.

@throws  ServeFailedException  If an argument is invalid or source file does not exists
@return  void
Serve webp image and handle errors .