
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
imageoptim-cli
Advanced tools
Automates ImageOptim, ImageAlpha, and JPEGmini for Mac to make batch optimisation of images part of your automated build process.
Automates ImageOptim, ImageAlpha, and JPEGmini for Mac to make batch optimisation of images part of your automated build process.
$ npm install -g imageoptim-cli
ImageOptim-CLI is written in Shell and AppleScript, so you don't need Node.js or npm. You can install manually by downloading the latest zip then adding ImageOptim-CLI to your $PATH.
$ curl --output imageoptim-cli.zip https://codeload.github.com/JamieMason/ImageOptim-CLI/zip/1.7.1
$ unzip imageoptim-cli.zip
$ export PATH=$PATH:imageoptim-cli/bin
See how ImageOptim performs compared to other image optimisation tools.
The ImageOptim-CLI Grunt plugin is grunt-imageoptim.
There's a short video demo to give you an idea of how it works.
This command will optimise all image files in your Awesome project.
imageOptim --directory ~/Sites/Awesome # [options]
This command will optimise just the .jpg files in your Awesome project.
find ~/Sites/Awesome -name '*.jpg' | imageOptim # [options]
The long format for enabling options is as follows;
imageOptim --jpeg-mini --image-alpha --quit --directory path/to/images
The equivalent of the above in short format is as follows;
imageOptim -j -a -q -d path/to/images
Adding the below to your_project/.git/hooks/pre-commit will run ImageOptim-CLI each time you commit new and changed files into your project. Any files which aren't images will be ignored.
git diff --cached --name-only --diff-filter=ACM | imageOptim # [options]
Usage: imageOptim [options]
Options:
-d, --directory directory of images to process
-a, --image-alpha pre-process PNGs with ImageAlpha.app *
-j, --jpeg-mini pre-process JPGs with JPEGmini.app **
-q, --quit quit all apps when complete
-h, --help display this usage information
-e, --examples display some example commands and uses
-v, --version display the version number
* http://pngmini.com
** https://itunes.apple.com/us/app/jpegmini/id498944723
FAQs
Automates ImageOptim, ImageAlpha, and JPEGmini for Mac to make batch optimisation of images part of your automated build process.
The npm package imageoptim-cli receives a total of 5,542 weekly downloads. As such, imageoptim-cli popularity was classified as popular.
We found that imageoptim-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.