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 0.3.5 to 0.3.6

6

lib/argsHandler.js

@@ -1,7 +0,7 @@

// Native
const pkg = require('../package.json');
// Vendor
const { ArgumentParser } = require('argparse');
// Package
const pkg = require('../package.json');
// Constants

@@ -8,0 +8,0 @@ const {

@@ -54,3 +54,3 @@ // Native

const qualityOptions = ['etcfast', 'etcslow', 'etcfastperceptual', 'etcslowperceptual'];
const qualityPicker = Math.floor(quality / 2.1);
const qualityPicker = Math.floor(quality / 2.7);
const qualityFlag = qualityOptions[qualityPicker]; // One of the five options

@@ -57,0 +57,0 @@

@@ -72,2 +72,3 @@ // Native

`${compressionFlag}`,
'-dxtQuality',
`${DXTQualityFlag}`,

@@ -74,0 +75,0 @@ '-helperThreads',

// Arguments
const { input, type } = require('./argsHandler');
const { input, quality, type } = require('./argsHandler');

@@ -23,2 +23,6 @@ // Compression types

if (quality < 0 || quality > 10) {
throw new Error('Quality flag should be in a range between 0 and 10');
}
switch (type) {

@@ -25,0 +29,0 @@ case 'astc':

{
"name": "texture-compressor",
"version": "0.3.5",
"version": "0.3.6",
"description": "CLI tool for texture compression using ASTC, ETC, PVRTC and S3TC in a KTX container.",

@@ -5,0 +5,0 @@ "main": "index.js",

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