title: Using ImageSharp to adjust levels and colors
body: <pre><code>myImage.Mutate(i =&gt; i.Saturate(2).Resize(new ResizeOptions { Mode = ResizeMode.Crop, Position = AnchorPositionMode.Center, Size = new Size(width, height) }));
  </code></pre>
  
  <p>I am trying to convert a Photoshop job to be done by ImageSharp in my .NET Core application - most of it goes well, see example above, but I miss 2 things;</p>
  
  <p>How do I adjust Levels (like Image -> Adjustment -> Levels in Photoshop)?</p>
  
  <p>How do I change number of colors used, want to go to e.g. 20 colors (like Image -> Mode -> Index Color in Photoshop)?</p>
  
  <p>I need it to be done between Saturate and Resize if possible at all.</p>