<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <br>
    <blockquote type="cite"
cite="mid:CACJ51z2R6tx1sHfkj=Skjr4vg_J+D9SbWpt4aXh5OGCY8ni5Qg@mail.gmail.com">
      <div dir="ltr">
        <div>Do you have any idea why the differences exist? Is it worth
          investigating?</div>
      </div>
    </blockquote>
    <p>Quite likely subtle differences in behavior of the JPEG
      compression library. Mine on ubuntu 20.04 is libjpeg-turbo 2.0.3
      with IJG libjpeg 8 ABI. I presume if you built if from source and
      linked it against GDAL, you'd get the same checksums.</p>
    <p>We should try to minimize tests using JPEG for that reason, but
      in that instance, this test is really meant to check JPEG specific
      code paths in the COG driver. Or use some kind of perceptualdiff
      test for such test, but the "perceptualdiff" utility does consider
      "your" and "mine" image to be different, so that wouldn't help.
      We'd probably need something clever that tolerates pixel values
      differences that can be quite important (the max here is a
      difference of 19 units) but detects there's no spatial shift.<br>
    </p>
    <blockquote type="cite"
cite="mid:CACJ51z2R6tx1sHfkj=Skjr4vg_J+D9SbWpt4aXh5OGCY8ni5Qg@mail.gmail.com">
      <div dir="ltr"><br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Wed, Apr 28, 2021 at 8:35
            AM Even Rouault <<a
              href="mailto:even.rouault@spatialys.com"
              moz-do-not-send="true">even.rouault@spatialys.com</a>>
            wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
            <div>
              <p>Andew,</p>
              <p>visually the difference between your image and the one
                generated on my PC are almost indistinguishable (no
                spatial shift at least). Please submit a PR adding your
                checksums as alternate accepted ones. You may just
                remove the "if sys.platform == 'darwin'" case. Hopefully
                adding your checksums should fix the OSX CI too</p>
            </div>
          </blockquote>
        </div>
        <div><br>
        </div>
        -- <br>
        <div dir="ltr" class="gmail_signature">Andrew Bell<br>
          <a href="mailto:andrew.bell.ia@gmail.com" target="_blank"
            moz-do-not-send="true">andrew.bell.ia@gmail.com</a></div>
      </div>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </body>
</html>