|
|
|
@ -3,12 +3,12 @@ |
|
|
|
See: https://github.com/SixLabors/ImageSharp/issues/418 |
|
|
|
|
|
|
|
## How do I convert a JPG to a PNG image? |
|
|
|
` |
|
|
|
```cs |
|
|
|
using (Image<Rgba32> image =Image.Load<Rgba32>($"{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) |
|
|
|
|
|
|
|
## How do I convert an image to black and white? |
|
|
|
|