New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

reduce-img

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reduce-img

tinypng test from https://tinypng.com/dashboard/api

latest
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

reduce-img is a cli tool for tinifing png or jpg file. It is base on tinify png. It decrease the number of colors in the image, so therd is fewer bytes to store data without almost no difference visually.

how to use

The only thing required to start tinify your image is to get the tinify key. You just need to submit your e-mail and then you will receive the key.

npm install -g reduce-img

// set the key
reduce-img -k yourkey

// compress all of png and jpg files in the current directory and then cover it
reduce-img

// compress specified files
reduce-img ./1.jpg,./img/2.png

The speeds of your tiny task depends on the speed of the network. when the task start, It upload the image to the server and then download the compressed image data.

Keywords

reduce-img

FAQs

Package last updated on 22 Oct 2019

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