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 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],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`). |"]]