public virtual byte[] GetThumbnail(Stream stream, int width, int height, bool smartCropping = true) { var response = RepositoryClient.SendOctetStreamPostForBytes(ApiKeys.ComputerVision, $"{ApiKeys.ComputerVisionEndpoint}generateThumbnail?width={width}&height={height}&smartCropping={smartCropping}", stream); return(response); }