private async Task <StorageFile> ScaleImageAync(StorageFile file) { var imageResizer = new ImageResizer(new SizeValidator(40, 2600)); imageResizer.EnsureSuccesfullScale(); ImageResult result = await imageResizer.ResizeAsync(file); file = result.File as StorageFile; return(file); }