
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
image-compressor-cli
Advanced tools
A batch image compressor cli based on [tinify](https://www.npmjs.com/package/tinify) and [sharp](https://www.npmjs.com/package/sharp), it will compress images and **replace them** by default.
A batch image compressor cli based on tinify and sharp, it will compress images and replace them by default.
npm install -g image-compressor-cli
go to tinify and get your api key
Execute with follow command to set your api key,
image-compressor-cli config -k <your-tinify-api-key>
and you can useimage-compressor-cli config --show to view your current api key.
Then you can use the following commands to compress images
Currently, the images compressed by Tinify (jpg, jpeg, png, webp) are not supported custom quality, so you can only use the default quality.
image-compressor-cli --quality 80
image-compressor-cli --colors 128
image-compressor-cli --output-dir ./output
image-compressor-cli
-V, --version output the version number
-q, --quality <number> Set Sharp static image quality (default: 80)
-c, --colors <number> Set gif image maximum number of palette entries, including transparency, between 2 and
256 (default: 128)
-o, --output-dir <directory> Specify a custom output directory
-h, --help display help for command
Commands:
config [options] API key configuration management
help [command] display help for command
| supported extensions | notes |
|---|---|
| jpg | lossy compression |
| jpeg | lossy compression |
| png | lossless compression |
| tiff | lossless compression |
| webp | lossy compression |
| gif | lossy compression |
p.s.
FAQs
A batch image compressor cli based on [tinify](https://www.npmjs.com/package/tinify) and [sharp](https://www.npmjs.com/package/sharp), it will compress images and **replace them** by default.
We found that image-compressor-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.