From 59989b096962df7afb5bee4e4d232e7169d9c7d0 Mon Sep 17 00:00:00 2001 From: Manuel Kamper Date: Sat, 4 May 2019 18:17:50 +0200 Subject: [PATCH] added default conversion for image to byte[] f.e. if it is a memorystream --- Mk0.Tools.Convert/Image.cs | 3 +++ Mk0.Tools.Convert/Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Mk0.Tools.Convert/Image.cs b/Mk0.Tools.Convert/Image.cs index a5abdd9..8c32b56 100644 --- a/Mk0.Tools.Convert/Image.cs +++ b/Mk0.Tools.Convert/Image.cs @@ -29,6 +29,9 @@ namespace Mk0.Tools.Convert case ".gif": image.Save(ms, ImageFormat.Gif); break; + default: + image.Save(ms, ImageFormat.Png); + break; } return ms.ToArray(); } diff --git a/Mk0.Tools.Convert/Properties/AssemblyInfo.cs b/Mk0.Tools.Convert/Properties/AssemblyInfo.cs index 6f2c810..a131220 100644 --- a/Mk0.Tools.Convert/Properties/AssemblyInfo.cs +++ b/Mk0.Tools.Convert/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, // indem Sie "*" wie unten gezeigt eingeben: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.2.0")] -[assembly: AssemblyFileVersion("1.0.2.0")] +[assembly: AssemblyVersion("1.0.3.0")] +[assembly: AssemblyFileVersion("1.0.3.0")]