etc1tool
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
etc1tool
は、PNG 画像を ETC1 圧縮規格にエンコードし、ETC1 圧縮画像をデコードして PNG に戻すことができるコマンドライン ユーティリティです。
etc1tool
の使用方法は次のとおりです。
etc1tool infile [--help | --encode | --encodeNoHeader | --decode] [--showDifference
diff-file] [-o outfile]
コマンド オプションを次の表に示します。
オプション |
説明 |
infile |
圧縮する入力ファイル。 |
--help |
使用方法に関する情報を出力します。 |
--encode |
PNG ファイルから ETC1 ファイルを作成します。ほかに何も指定しなかった場合、これがツールのデフォルト モードになります。 |
--encodeNoHeader |
PNG ファイルからヘッダーのない未加工 ETC1 データファイルを作成します。 |
--decode |
ETC1 ファイルから PNG ファイルを作成します。 |
--showDifference diff-file |
元の画像とエンコード後の画像の差分を diff-file に書き込みます。このオプションは、エンコード時にのみ有効です。 |
-o outfile |
出力ファイルの名前を指定します。outfile が指定されていない場合、出力ファイルは、入力ファイル名に適切なサフィックス(.pkm または .png )を付けて構成されます。 |
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[null,null,["最終更新日 2025-07-27 UTC。"],[],[],null,["# etc1tool\n\n`etc1tool` is a command line utility that lets you encode PNG\nimages to the [ETC1](https://registry.khronos.org/OpenGL/extensions/OES/OES_compressed_ETC1_RGB8_texture.txt) compression standard and decode ETC1 compressed images back to PNG.\n\nThe usage for `etc1tool` is: \n\n```\netc1tool infile [--help | --encode | --encodeNoHeader | --decode] [--showDifference\ndiff-file] [-o outfile]\n```\n\nThis table lists the command options:\n\n| Option | Description |\n|--------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `infile` | The input file to compress. |\n| `--help` | Print usage information. |\n| `--encode` | Create an ETC1 file from a PNG file. This is the default mode for the tool if nothing is specified. |\n| `--encodeNoHeader` | Create a raw ETC1 data file without a header from a PNG file. |\n| `--decode` | Create a PNG file from an ETC1 file. |\n| `--showDifference `*diff-file* | Write the difference between the original and encoded image to *diff-file*. This option is only valid when encoding. |\n| `-o `*outfile* | Specify the name of the output file. If *outfile* is not specified, the output file is constructed from the input filename with the appropriate suffix (`.pkm` or `.png`). |"]]