texture-compressor
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -75,2 +75,14 @@ "use strict"; | ||
}); | ||
// Resize square flag | ||
parser.addArgument(['-rs', '--square'], { | ||
choices: ['no', '-', '+'], | ||
help: 'Force the texture into a square (default: +)', | ||
required: false, | ||
}); | ||
// Resize power of two flag | ||
parser.addArgument(['-rp', '--pot'], { | ||
choices: ['no', '-', '+'], | ||
help: 'Force the texture into power of two dimensions (default: +)', | ||
required: false, | ||
}); | ||
// Arbitrary flags to pass on to specific tool | ||
@@ -77,0 +89,0 @@ parser.addArgument(['-f', '--flags'], { |
@@ -35,7 +35,9 @@ "use strict"; | ||
`${args.quality}`, | ||
`-square`, | ||
`+`, | ||
`-pot`, | ||
`+`, | ||
]; | ||
if (args.square !== 'no') { | ||
flagMapping.push('-square', args.square || '+'); | ||
} | ||
if (args.pot !== 'no') { | ||
flagMapping.push('-pot', args.pot || '+'); | ||
} | ||
if (args.mipmap) { | ||
@@ -42,0 +44,0 @@ const { width } = utilities_1.getImageSize(args.input); |
{ | ||
"name": "texture-compressor", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "CLI tool for texture compression using ASTC, ETC, PVRTC and S3TC in a KTX container.", | ||
@@ -5,0 +5,0 @@ "main": "dist/cli/lib/index.js", |
@@ -9,2 +9,4 @@ export interface ICLIArgs { | ||
flipY?: boolean; | ||
square?: string; | ||
pot?: string; | ||
flags?: string[] | null; | ||
@@ -11,0 +13,0 @@ verbose?: boolean; |
@@ -91,2 +91,16 @@ // Vendor | ||
// Resize square flag | ||
parser.addArgument(['-rs', '--square'], { | ||
choices: ['no', '-', '+'], | ||
help: 'Force the texture into a square (default: +)', | ||
required: false, | ||
}); | ||
// Resize power of two flag | ||
parser.addArgument(['-rp', '--pot'], { | ||
choices: ['no', '-', '+'], | ||
help: 'Force the texture into power of two dimensions (default: +)', | ||
required: false, | ||
}); | ||
// Arbitrary flags to pass on to specific tool | ||
@@ -116,2 +130,4 @@ parser.addArgument(['-f', '--flags'], { | ||
flipY?: boolean; | ||
square?: string; | ||
pot?: string; | ||
flags?: string[] | null; | ||
@@ -118,0 +134,0 @@ verbose?: boolean; |
@@ -71,8 +71,12 @@ // Arguments | ||
`${args.quality}`, | ||
`-square`, | ||
`+`, | ||
`-pot`, | ||
`+`, | ||
]; | ||
if (args.square !== 'no') { | ||
flagMapping.push('-square', args.square || '+'); | ||
} | ||
if (args.pot !== 'no') { | ||
flagMapping.push('-pot', args.pot || '+'); | ||
} | ||
if (args.mipmap) { | ||
@@ -79,0 +83,0 @@ const { width } = getImageSize(args.input); |
{ | ||
"name": "texture-compressor", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "CLI tool for texture compression using ASTC, ETC, PVRTC and S3TC in a KTX container.", | ||
@@ -5,0 +5,0 @@ "main": "dist/cli/lib/index.js", |
@@ -15,2 +15,6 @@ # Texture Compressor | ||
## Live demo | ||
[Live demo](https://timvanscherpenzeel.github.io/texture-compressor/) | ||
## Documentation | ||
@@ -79,2 +83,4 @@ | ||
-rs, --square ['no', '-', '+', default: +] [not required] | ||
-rp, --pot ['no', '-', '+', default: +] [not required] | ||
-m, --mipmap [true / false, default: false] [not required] | ||
@@ -81,0 +87,0 @@ -y, --flipY [tue / false, default: false] [not required] |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 12 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 12 instances in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
33507567
1426
109
22