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

crunchitize

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crunchitize

Turn images into Crunch textures (.crn)

  • 1.1.0
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by20%
Maintainers
1
Weekly downloads
 
Created
Source

Usage:

-f, --files  Glob path or path to .txt file list of glob paths to .pngs to process.
-q, --quality  Quality of crunch output, 0-1. Default is 0.5.
-pm, --premultiplied  If the input pngs should be converted to premultiplied alpha images first. Default is true.
--format  'crn' for .crn, or 'dds' for .dds. Default is 'crn'.
-d, --deleteInput  If the input pngs should be deleted after being converted. Default is false.

Convert a single file

crunchitize -f path/to/my.png

Convert all .pngs in a folder, at max quality

crunchitize -f path/to/folder/ -q 1

Convert all .pngs in a folder to dds

crunchitize -f path/to/folder/ --format dds

Convert all listed images at varying qualities

list.txt:

path/to/my.png 0.8
path/to/other.png 0.3

shell:

crunchitize -f path/to/list.txt

Executables for the crunch compression itself are taken from https://github.com/BKcore/crunch-osx.

Keywords

FAQs

Package last updated on 17 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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