etc1tool
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
etc1tool
adalah utilitas command line yang memungkinkan Anda mengenkode gambar PNG ke standar kompresi ETC1 dan mendekode gambar terkompresi ETC1 kembali ke PNG.
Penggunaan untuk etc1tool
adalah:
etc1tool infile [--help | --encode | --encodeNoHeader | --decode] [--showDifference
diff-file] [-o outfile]
Tabel ini mencantumkan opsi perintah:
Opsi |
Deskripsi |
infile |
File input yang akan dikompresi. |
--help |
Mencetak informasi penggunaan. |
--encode |
Membuat file ETC1 dari file PNG.
Ini adalah mode default untuk fitur jika tidak ada apa pun yang ditentukan. |
--encodeNoHeader |
Membuat file data ETC1 mentah tanpa header dari file PNG. |
--decode |
Membuat file PNG dari file ETC1. |
--showDifference diff-file |
Menulis perbedaan antara gambar asli dan terenkode ke
diff-file . Opsi ini hanya valid saat encoding. |
-o outfile |
Menentukan nama file output.
Jika outfile tidak ditentukan, file output akan dibuat dari nama file input dengan akhiran yang sesuai (.pkm atau .png ).
|
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[null,null,["Terakhir diperbarui pada 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`). |"]]