Home | History | Annotate | Download | only in help
      1 page.title=etc1tool
      2 parent.title=Tools
      3 parent.link=index.html
      4 @jd:body
      5 
      6 
      7  <p><code>etc1tool</code> is a command line utility that lets you encode PNG
      8  images to the ETC1 compression standard and decode ETC1 compressed images back to PNG.</p>
      9 
     10   <p>The usage for <code>etc1tool</code> is:</p>
     11 <pre>etc1tool infile [--help | --encode | --encodeNoHeader | --decode] [--showDifference
     12 diff-file] [-o outfile]</pre>
     13 
     14   <table>
     15     <tr>
     16       <th>Option</th>
     17 
     18       <th>Description</th>
     19     </tr>
     20 
     21     <tr>
     22       <td><code>infile</code></td>
     23 
     24       <td>The input file to compress</td>
     25     </tr>
     26 
     27     <tr>
     28       <td><code>--help</code></td>
     29 
     30       <td>Print usage information</td>
     31     </tr>
     32 
     33     <tr>
     34       <td><code>--encode</code></td>
     35 
     36       <td>Create an ETC1 file from a PNG file.
     37       This is the default mode for the tool if nothing is specified.</td>
     38     </tr>
     39 
     40     <tr>
     41       <td><code>--encodeNoHeader</code></td>
     42 
     43       <td>Create a raw ETC1 data file (without a header) from a PNG file.</td>
     44     </tr>
     45 
     46     <tr>
     47       <td><code>--decode</code></td>
     48 
     49       <td>Create a PNG file from an ETC1 file</td>
     50     </tr>
     51 
     52     <tr>
     53       <td><code>--showDifference <em>diff-file</em></code></td>
     54 
     55       <td>Write the difference between the original and encoded image to
     56       <code><em>diff-file</em></code> (only valid when encoding).</td>
     57     </tr>
     58 
     59     <tr>
     60       <td><code>-o <em>outfile</em></code></td>
     61 
     62       <td>Specify the name of the output file.
     63       If <code><em>outfile</em></code> is not specified, the output file is constructed
     64       from the input filename with the appropriate suffix (<code>.pkm</code> or <code>.png</code>).
     65       </td>
     66     </tr>
     67 
     68   </table>