texture-compressor
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -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", |
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
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
30734994
595