From dbf46c481b519baa63f9246403bfb082b7fc2bf5 Mon Sep 17 00:00:00 2001 From: Engincan VESKE <43685404+EngincanV@users.noreply.github.com> Date: Mon, 23 Oct 2023 11:12:20 +0300 Subject: [PATCH] Update Image-Manipulation.md --- docs/en/Image-Manipulation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/Image-Manipulation.md b/docs/en/Image-Manipulation.md index e1715722aa..9d946e31dd 100644 --- a/docs/en/Image-Manipulation.md +++ b/docs/en/Image-Manipulation.md @@ -88,7 +88,7 @@ var resizeResult = await _imageResizer.ResizeAsync( ); ``` -> If `resizeResult.State` returns 'Done,' it means that the resize operation was successful. However, if it does not return 'Done,' the stream you're using might be corrupt. Therefore, you can perform a check like the one below and assign the correct stream to the main stream. +> **Note:** If `resizeResult.State` returns 'Done', then it means that the resize operation was successful. However, if it returns any other state than 'Done', the stream you're using might be corrupted. Therefore, you can perform a check like the one below and assign the correct stream to the main stream: ```csharp if (resizeResult.Result is not null && imageStream != resizeResult.Result && resizeResult.Result.CanRead) @@ -186,7 +186,7 @@ var compressResult = await _imageCompressor.CompressAsync( ); ``` -> If `compressResult.State` returns 'Done,' it means that the compress operation was successful. However, if it does not return 'Done,' the stream you're using might be corrupt. Therefore, you can perform a check like the one below and assign the correct stream to the main stream. +> **Note:** If `compressResult.State` returns 'Done', then it means that the compression operation was successful. However, if it returns any other state than 'Done', the stream you're using might be corrupted. Therefore, you can perform a check like the one below and assign the correct stream to the main stream: ```csharp