<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    >  I find that if I do:
    <blockquote type="cite"
cite="mid:CA+YzLBdXe1ATs-UvmPNJx_qPjxFaiBGNJF_v55MMaJb8jhgwcg@mail.gmail.com">
      <div dir="ltr">
        <div class="gmail_default" style="font-family:arial,sans-serif">tiffcp sample-no-mask.tif,0
          x0.tif</div>
        <div class="gmail_default" style="font-family:arial,sans-serif"><br>
        </div>
        <div class="gmail_default" style="font-family:arial,sans-serif">I
          get an "x0.tif" with just the jpeg image, and not the mask. 
          That may be helpful for you (without uncompressing the jpeg
          image).</div>
      </div>
    </blockquote>
    <p>tiffcp doesn't use the raw interface of libtiff, hence JPEG
      decompression&recompression will occur.</p>
    <p>tiffsplit avoids that as it does use the raw interface:</p>
    <p>tiffsplit sample-no-mask.tif out</p>
    <p>will generate a outaaa.tif file with the original JPEG content
      (the geotif tags will be lost however, and will have to be
      reinjected
<a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/blob/master/swig/python/gdal-utils/osgeo_utils/samples/gdalcopyproj.py">https://github.com/OSGeo/gdal/blob/master/swig/python/gdal-utils/osgeo_utils/samples/gdalcopyproj.py</a>
      for example)</p>
    <p>Even</p>
    <p>-- </p>
    <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>