title: How to adjust jpeg quality with Magick.Net
body: <p>I am trying to set the image quality of two images appended to one another to 10% and resize the images to 40x40.</p>
  
  <pre><code>using (var images = new MagickImageCollection {designFile, swatchFile})
  {
      MagickImage sprite = images.AppendHorizontally();
      sprite.Format = MagickFormat.Jpeg;
      sprite.SetOption(MagickFormat.Jpeg, "quality", "10%");
      sprite.SetOption(MagickFormat.Jpeg, "size", "40x40"); ;
  
      sprite.Write(spriteFile);
  }
  </code></pre>
  
  <p>Unfortunately the <code>SetOption</code> and <code>Format</code> calls don't seem to be affecting the file that is written to <code>sprite.Write()</code>?</p>