{"name":"texture-compressor","version":"0.3.8","description":"CLI tool for texture compression using ASTC, ETC, PVRTC and S3TC in a KTX container.","main":"index.js","scripts":{"generate-default":"./docs/generate_default.sh","generate-flipped-y":"./docs/generate_flipped_y.sh","generate-flipped-y-mipmaps":"./docs/generate_flipped_y_mipmaps.sh","start":"http-server --cors -s -o","lint":"eslint lib/**/*.js","deploy":"npm version patch && npm publish && git push origin"},"bin":{"texture-compressor":"./bin/texture-compressor.js"},"author":{"name":"Tim van Scherpenzeel"},"license":"MIT","dependencies":{"argparse":"^1.0.10","image-size":"^0.6.3"},"devDependencies":{"eslint":"^5.9.0","eslint-config-airbnb-base":"^13.1.0","eslint-plugin-import":"^2.14.0","http-server":"^0.11.1","prettier":"^1.15.3","prettier-eslint":"^8.8.2"},"repository":{"type":"git","url":"git+https://github.com/TimvanScherpenzeel/texture-compressor.git"},"bugs":{"url":"https://github.com/TimvanScherpenzeel/texture-compressor/issues"},"homepage":"https://github.com/TimvanScherpenzeel/texture-compressor#readme","gitHead":"43041d31fcdbc87ee6d163e9feb67e1b1e41ad27","_id":"texture-compressor@0.3.8","_npmVersion":"6.1.0","_nodeVersion":"10.6.0","_npmUser":{"name":"timvanscherpenzeel","email":"timvanscherpenzeel@gmail.com"},"dist":{"integrity":"sha512-nD3zpDTR456E9uz1jWRzz0+se60X7nugOaU/se3wcp5NPvL83rq8PJ6+jr2vGN3QqPmcg98IiKouXYPqAE046Q==","shasum":"9aa1e7765c6ed302c67794e8a7609cc5b7263880","tarball":"http://registry-npm.ywwl.com/texture-compressor/download/texture-compressor-0.3.8.tgz","fileCount":25,"unpackedSize":30748462,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcAUJtCRA9TVsSAnZWagAAP6gP/jULuX9DknNvVByd2YOf\nwQ3N3JxsyLpKcR9PR15ixPff3W0uCSzn9JpSu6f33BKukfZI1Dd/QPdJf2vu\nslK9Kjzz+vB7HrAEpszXE3U02FZQmVtqNnZ4Dtq6O7hA5kCe5AR8QFCY0vex\n26fHnYQsf4KJ4m+B29Ry7RcgmwGw1PiEfLVU8X6WvlaKG3yhyzFhW0AOA2Hl\nN0dYxD3pSUmQf7XY/yZFkG3dHl6hAHVwKiZKQfDxy4TjkqqYNozZDcSJ0emd\nvXOqusOPLwVUZ/7BVbrGlSYt7l+6vaMwbEZHQVBM82gDqIQCK5k2qv/4lx4e\nOywk0TIfgI/9nFT2cbq+D30JS8QVQZPH1T4Pp6RuxHR2EbE18ThlIowdkr10\nnyXlcgPRfaPUtigD032BQsH6PU78in5rOOSDVBvWVZFW+ncvbbP/nPhQ+tB/\n87F4k8liT8TyKcipLL/TbUMsMz20U2ZJjg46aWqr3SAlqMTAIZfwkjMmunt4\nhNkR+U5uNaOOXff6p/lvplpkfG3vQ/XWv7dnreNSyVt7PfrdL0ntJSGJ6A2m\nMkxObUKM5IzL9URxQOlvfmqbBn6wWkxgHOwCbAXM8kgH6nneBshpSUdVLpOs\nkfATVylkCO+ZcaHbqoYUlRfP3UIYsmpdS1IQ/P4znFkujtF5q40roxyr66hi\nkYdi\r\n=Q+NX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAwUsv58iPCopNAZfqyOTvBdmUnkYRw904ip+qiwnYvYAiEAgaspHrMPhCysvGoPyrdZLHm3HRXP8TwF8u7Uvt3GfaE="}],"size":12048744,"noattachment":false,"key":"/texture-compressor/-/texture-compressor-0.3.8.tgz"},"maintainers":[{"name":"timvanscherpenzeel","email":"timvanscherpenzeel@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/texture-compressor_0.3.8_1543586412395_0.7298646741430272"},"_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":1543586412855,"_cnpm_publish_time":1543586412855,"dist-tags":{"latest":"1.0.2"}}