mirror of https://github.com/SixLabors/ImageSharp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
525 B
20 lines
525 B
using System;
|
|
using ImageSharp;
|
|
using ImageSharp.Formats;
|
|
|
|
namespace ChangeDefaultEncoderOptions
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
// lets switch out the default encoder for jpeg to one
|
|
// that saves at 90 quality and ignores the matadata
|
|
Configuration.Default.SetEncoder(ImageFormats.Jpeg, new ImageSharp.Formats.JpegEncoder()
|
|
{
|
|
Quality = 90,
|
|
IgnoreMetadata = true
|
|
});
|
|
}
|
|
}
|
|
}
|