summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/TinyPNG/Extensions/ImageDataExtensions.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/TinyPNG/Extensions/ImageDataExtensions.cs b/src/TinyPNG/Extensions/ImageDataExtensions.cs
index c2f3334..28aedef 100644
--- a/src/TinyPNG/Extensions/ImageDataExtensions.cs
+++ b/src/TinyPNG/Extensions/ImageDataExtensions.cs
@@ -66,7 +66,7 @@ namespace TinyPng
/// <param name="result">The result from compress</param>
/// <param name="filePath">The path to store the file</param>
/// <returns></returns>
- public async static Task SaveImageToDisk(TinyPngImageResponse result, string filePath)
+ public async static Task SaveImageToDisk(this TinyPngImageResponse result, string filePath)
{
var byteData = await result.GetImageByteData();
File.WriteAllBytes(filePath, byteData);