title: Reduce size of byte array image screenshot selenium
body: <p>I'm taking screenshot in my runs after every run but want to reduce the size so that it doesn't occupy too much space: every screenshot is 1mb on average, having 200 test with screenshot attached will give 200mb only for screenshots.
  Attaching it to allure report</p>
  
  <pre><code>@Attachment
      public byte[] attachScreenshot() {
          try {
              return ((TakesScreenshot) driver).getScreenshotAs(OutputType.BYTES);
          } catch (Exception ignore) {return null;}
      }
  </code></pre>
  
  <p>Any ideas on how to shrink the screenshot size?</p>