أداة وغيرها
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
etc1tool
هي أداة سطر أوامر تتيح لك ترميز PNG
الصور إلى معيار ضغط ETC1 وفك ترميز الصور المضغوطة ETC1 مرة أخرى إلى PNG.
يبلغ استخدام "etc1tool
" ما يلي:
etc1tool infile [--help | --encode | --encodeNoHeader | --decode] [--showDifference
diff-file] [-o outfile]
يسرد هذا الجدول خيارات الأوامر:
Option |
الوصف |
infile |
الملف المدخل المطلوب ضغطه. |
--help |
طباعة معلومات الاستخدام |
--encode |
أنشِئ ملف ETC1 من ملف PNG.
ويكون هذا هو الوضع التلقائي للأداة، إذا لم يتم تحديد أي عنصر. |
--encodeNoHeader |
إنشاء ملف بيانات ETC1 أوّلي بدون عنوان من ملف PNG |
--decode |
أنشِئ ملف PNG من ملف ETC1. |
--showDifference diff-file |
اكتب الفرق بين الصورة الأصلية والمشفرة
diff-file لا يكون هذا الخيار صالحًا إلا أثناء الترميز. |
-o outfile |
حدِّد اسم ملف الإخراج.
إذا لم يتم تحديد outfile ، سيتم إنشاء ملف الناتج.
من اسم ملف الإدخال مع اللاحقة المناسبة (.pkm أو .png ).
|
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 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`). |"]]