Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

texture-compressor

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

texture-compressor - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

docs/data/flippedY-mipmaps/example-astc-4x4.ktx

12

dist/cli/lib/argsHandler.js

@@ -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'], {

10

dist/cli/lib/compressors/compressWithPVRTexTool.js

@@ -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);

2

dist/cli/package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc