{"name":"texture-compressor","version":"1.0.1","description":"CLI tool for texture compression using ASTC, ETC, PVRTC and S3TC in a KTX container.","main":"dist/cli/lib/index.js","scripts":{"start":"tsc -w","lint":"tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rimraf dist","build":"tsc"},"bin":{"texture-compressor":"./bin/texture-compressor.js"},"author":{"name":"Tim van Scherpenzeel"},"license":"MIT","dependencies":{"argparse":"^1.0.10","image-size":"^0.7.4"},"devDependencies":{"@types/argparse":"^1.0.36","@types/node":"^12.0.2","prettier":"^1.17.1","rimraf":"^2.6.3","tslint":"^5.16.0","tslint-config-prettier":"^1.18.0","typescript":"^3.4.5"},"prettier":{"semi":true,"singleQuote":true,"trailingComma":"es5","printWidth":100},"gitHead":"7398e9990f5654506dbd207f61f303a533748427","_id":"texture-compressor@1.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"timvanscherpenzeel","email":"timvanscherpenzeel@gmail.com"},"dist":{"integrity":"sha512-MqLr5ws4iQgs/Q7/mJDsDzT9fM20+sWKiF9Id0XA0fkInDZ0McmIpq9cVOwRvPWLeWWHSIJF9wAu4aTgu/UVdw==","shasum":"a1f200fefee576b4e1893dbf7a6241db92f33151","tarball":"http://registry-npm.ywwl.com/texture-compressor/download/texture-compressor-1.0.1.tgz","fileCount":78,"unpackedSize":33507567,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdVWIQCRA9TVsSAnZWagAACh4P/jt5uXRMp/a0cen0u2uc\nBMnH6K5WzHH+sVu6VCOpS8bZoIGvlp7qAji+6n0pgmmahWj0gQk+eYR7huKF\n1dIFAfFnAz+tqnTLaG9js5T+UFHAJe3yaO0OnwHYSd1aFDVdXVy46yKiuGaS\nn3SnB1VfA6qkVUlxUHfIMFr3EqO2n7faRagRjS3zXV1/Z+uUKmw34OKT/Is6\n9pBu/kBYmfJkExjfor3P1lCV3L35oi+v3Vv916XpRZcB5Uh77z9KmqmcM+tS\nnee/bGPQROgUIYl48hAzKa7Igm+9A7R5I9yzCo++O1QcsefLrmRycjym304a\nFXZk3F349x/zNVp5uMkspkvaqM//K9fWJrP99+jFYGWJw018KiL2n5HHuO1u\n9fmGODor/9G1t53K1Ixd4k7+ZRXBepl5sadzP6M8Uh5Q64GR7LaYCCbj0fe8\n+INQWMYSbEQWyBWf1fxtZVfPY5qrrTvLPRg/xtlWjzovfYNrG2s9lS5XtV/I\nd2MHkev0VzoSUnNFXWP5jvv1PSUPjl+Q0MwsyEZcfnX4Zb4AdMGAsdQSyn8q\nincMXWugDNRG0giQ/zypMK4AkQEUqYarpGVX9eb+c3auoaqpKqHqBJgwR+Qc\nEkxBcjOdkGY/EJoWTT7q8gReANLBBJJaOTtZx5/dav7UEzpnlVSYTEelGcz8\nO5QE\r\n=BrBb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICx6R5lM6LHIuQy+VcDfV6jd2NQqyw+Axy93CLxZzTiZAiBhK8U7sXZERUwo6FSCn7q4T+Jk2odeQOT8xPFSXdewGw=="}],"size":14241557,"noattachment":false,"key":"/texture-compressor/-/texture-compressor-1.0.1.tgz"},"maintainers":[{"name":"timvanscherpenzeel","email":"timvanscherpenzeel@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/texture-compressor_1.0.1_1565876751196_0.2364257902328739"},"_hasShrinkwrap":false,"readme":"# Texture Compressor\n\n[![npm version](https://badge.fury.io/js/texture-compressor.svg)](https://badge.fury.io/js/texture-compressor)\n\nCLI tool for texture compression using ASTC, ETC, PVRTC and S3TC in a KTX container.\n\n## Installation\n\nMake sure you have [Node.js](http://nodejs.org/) installed.\n\n```sh\n $ npm install texture-compressor\n```\n\n## Live demo\n\n[Live demo](https://timvanscherpenzeel.github.io/texture-compressor/)\n\n## Documentation\n\n[Supported devices table](docs/SUPPORTED_DEVICES_TABLE.md)\n\n[Supported parameters](docs/SUPPORTED_PARAMETERS.md)\n\n[Recommended parameters](docs/RECOMMENDED_PARAMETERS.md)\n\n## CLI Usage\n\n### ASTC\n\n```sh\n$ node ./bin/texture-compressor -i input/example.png -t astc -c ASTC_4x4 -q astcmedium -o output/example-astc.ktx -y -m -vb\n```\n\n### ETC\n\n```sh\n$ node ./bin/texture-compressor -i input/example.png -t etc -c ETC2_RGB -q etcfast -o output/example-etc.ktx -y -m -vb\n```\n\n### PVRTC\n\n```sh\n$ node ./bin/texture-compressor -i input/example.png -t pvrtc -c PVRTC1_2 -q pvrtcnormal -o output/example-pvrtc.ktx -y -m -vb\n```\n\n### S3TC\n\n```sh\n$ node ./bin/texture-compressor -i input/example.png -t s3tc -c DXT1 -q normal -o output/example-s3tc.ktx -y -m -vb\n```\n\n## Module usage\n\n```js\nconst { pack } = require('./dist/cli/lib/index');\n\npack({\n  type: 'astc',\n  input: 'input/example.png',\n  output: 'output/example-astc.ktx',\n  compression: 'ASTC_4x4',\n  quality: 'astcmedium',\n  verbose: true,\n}).then(() => console.log('done!'));\n```\n\n## Flags\n\n### Required\n\n    -i, --input [example: ./input/example.png] [required]\n    -o, --output [example: ./output/example.ktx] [required]\n    -t, --type [example: astc, etc, pvrtc, s3tc] [required]\n    -c, --compression [example: ASTC_4x4, ETC2_RGB, PVRTC1_2, DXT1] [required]\n    -q, --quality [example: astcmedium, etcfast, pvrtcnormal, normal] [required]\n\n### Optional\n\n    -vb, --verbose [true / false, default: false] [not required]\n\n    -rs, --square ['no', '-', '+', default: +] [not required]\n    -rp, --pot ['no', '-', '+', default: +] [not required]\n    -m, --mipmap [true / false, default: false] [not required]\n    -y, --flipY [tue / false, default: false] [not required]\n\n### Tool flags\n\nTool flags are not processed by `texture-compressor` but rather directly by the binary you are targeting itself.\n\nFor example adding `--flags [\"usesourceformat DXT1A\" \"alphaThreshold 200\"]` will pass `usesourceformat DXT1A` and `alphaThreshold 200` directly to `Crunch`.\n\nPlease be aware that these flags are tool specific and can therefore not be directly applied to the other binaries.\n\n    -f, --flags [\"flag value\" \"flag value\"] [not required]\n\nTo find tool specific flags please refer to the manuals of [ASTC](http://cdn.imgtec.com/sdk-documentation/PVRTexTool.User+Manual.pdf), [ETC](http://cdn.imgtec.com/sdk-documentation/PVRTexTool.User+Manual.pdf), [PVRTC](http://cdn.imgtec.com/sdk-documentation/PVRTexTool.User+Manual.pdf), [S3TC](https://github.com/BinomialLLC/crunch/blob/235946f7a1cf8b9c97e8bf0e8062d5439a51dec7/crunch/crunch.cpp#L70-L181).\n\n## License\n\nMy work is released under the [MIT license](https://raw.githubusercontent.com/TimvanScherpenzeel/texture-compressor/master/LICENSE).\n\nThis repository distributes multiple binary tools for Windows, Mac and Linux.\nThis product includes components of the PowerVR™ SDK from Imagination Technologies Limited.\n\n- [astcenc](https://raw.githubusercontent.com/ARM-software/astc-encoder/master/license.txt)\n- [PVRTexToolCLI](https://community.imgtec.com/developers/powervr/sdk-end-user-licence-agreement/)\n- [crunch](https://raw.githubusercontent.com/BinomialLLC/crunch/master/license.txt)\n","publish_time":1565876751750,"_cnpm_publish_time":1565876751750,"dist-tags":{"latest":"1.0.2"}}