From 3ad444061146ba649b621acc4d9fcdc75ca1e96d Mon Sep 17 00:00:00 2001 From: asterixorobelix Date: Fri, 29 Dec 2017 15:03:06 +0200 Subject: [PATCH] Updated Questions and Answers (markdown) --- Questions-and-Answers.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Questions-and-Answers.md b/Questions-and-Answers.md index 6e77acd..5799769 100644 --- a/Questions-and-Answers.md +++ b/Questions-and-Answers.md @@ -4,10 +4,10 @@ See: https://github.com/SixLabors/ImageSharp/issues/418 ## How do I convert a JPG to a PNG image? ` -using (Image image =Image.Load($"{filename}.jpg")) - { - image.Save($"{filename}.png"); - } + using (Image image =Image.Load($"{filename}.jpg")) + { + image.Save($"{filename}.png"); + } ` ImageSharp will automatically choose the encoding based on the file extension used in the filename (eg .jpg or .png)