<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>My big fear this weekend was I was doing something wrong. I used
      your example and now it's not crashing on me. I had it -co
      'TILED=YES' - I just mistyped in the email. I need to update some
      notes on my end now to make sure I do this right from here on out.
      <br>
    </p>
    <p>Andreas and list - I thank you. <br>
    </p>
    <p>Randy<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 05/08/2017 09:46 AM, Neumann,
      Andreas wrote:<br>
    </div>
    <blockquote cite="mid:dbb313ff5ff350fba1b1f19243ec9011@carto.net"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <p>Hi Randal,</p>
      <p>A crash is always a  bug, in my opinion, even if your file
        isn't optimized.</p>
      <p>Note, that the correct parameter is "tiled=yes" not
        "tiles=yes". Not sure if this helps.</p>
      <p>Fyi - here is one of my examples with gdal_warp:</p>
      <p>gdalwarp -of GTiff -wm 500 --config GDAL_CACHEMAX 500 -multi
        -wo NUM_THREADS=2 -wo OPTIMIZE_SIZE=TRUE -srcnodata "255 255
        255" -dstnodata '255 255 255' -t_srs 'EPSG:2056' -co
        'BIGTIFF=YES' -co 'TILED=YES' -co 'COMPRESS=JPEG' -co
        'JPEG_QUALITY=85' -co 'PHOTOMETRIC=YCBCR' -co 'SPARSE_OK=TRUE'
        Originaldaten/*.tif DOP2011_LV95.tif</p>
      <p>the PHOTOMETRIC=YCBCR is specifically to be used for aerial
        images or satellite images.</p>
      <p>Of course, for good performance, you also need the pyramids:</p>
      <p>gdaladdo -r cubic --config BIGTIFF_OVERVIEW YES --config
        COMPRESS_OVERVIEW JPEG --config JPEG_QUALITY 85 --config
        PHOTOMETRIC_OVERVIEW YCBCR --config INTERLEAVE_OVERVIEW PIXEL
        DOP2016_LV95.tif 2 4 8 16 32 64 128 256</p>
      <p>Hope this helps,</p>
      <p>Andreas</p>
      <p>On 2017-05-08 15:29, Randal Hale wrote:</p>
      <blockquote type="cite" style="padding: 0 0.4em; border-left:
        #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
        <ul>
          <li>QGIS: 2.18.7 </li>
          <li>GDAL 2.1.3</li>
        </ul>
        <p>I have a tiff file. I decided to jpeg compress it for some
          help with the size. </p>
        <p>I did: gdal_translate -co compress=jpeg -co tiles=yes
          oldfile.tif newfile_jpg.tif </p>
        <p>When I open the file in QGIS (2.18.7) on linux it crashes
          immediately.</p>
        <p>When opened on windows if the file is small it takes about a
          minute but displays. If I compress a larger tiff (compressed
          size is 1.1 gb) QGIS on windows crashes. </p>
        <p>I checked for bugs and there seems to be a jpeg bug out
          there: <a moz-do-not-send="true"
            class="moz-txt-link-freetext"
            href="https://issues.qgis.org/issues/16049">https://issues.qgis.org/issues/16049</a></p>
        <p>If I do this with compress=deflate,  QGIS is happy. </p>
        <p>Anyway - file a bug report? or I'm doing the compression
          incorrectly? </p>
        Randy<br>
        <pre class="moz-signature">-- 
-----------------
Randal Hale
North River Geographic Systems, Inc
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.northrivergeographic.com">http://www.northrivergeographic.com</a>
423.653.3611 <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:rjhale@northrivergeographic.com">rjhale@northrivergeographic.com</a>
twitter:rjhale</pre>
        <!-- html ignored --><br>
        <div class="pre" style="margin: 0; padding: 0; font-family:
          monospace">_______________________________________________<br>
          Qgis-user mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
          List info: <a moz-do-not-send="true"
            href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
          Unsubscribe: <a moz-do-not-send="true"
            href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></div>
      </blockquote>
      <p> </p>
      <div> </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
-----------------
Randal Hale
North River Geographic Systems, Inc
<a class="moz-txt-link-freetext" href="http://www.northrivergeographic.com">http://www.northrivergeographic.com</a>
423.653.3611 <a class="moz-txt-link-abbreviated" href="mailto:rjhale@northrivergeographic.com">rjhale@northrivergeographic.com</a>
twitter:rjhale</pre>
  </body>
</html>