https://github.com/astronomersiva/ajanta-cli
A CLI tool that can generate multiple versions of images at various resolutions and also pixelated images for lazy-loading
https://github.com/astronomersiva/ajanta-cli
Last synced: about 2 months ago
JSON representation
A CLI tool that can generate multiple versions of images at various resolutions and also pixelated images for lazy-loading
- Host: GitHub
- URL: https://github.com/astronomersiva/ajanta-cli
- Owner: astronomersiva
- Created: 2018-07-23T17:17:09.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-28T22:39:45.000Z (almost 7 years ago)
- Last Synced: 2025-01-21T20:49:07.801Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 974 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ajanta-cli
This is a command line utility that I use to generate resized images
for various resolutions and to also get pixelated versions that I
use for lazy loading with [ajanta](https://github.com/astronomersiva/ajanta).### Usage
* `npm install -g ajanta-cli`
* Run `ajanta` from any directory. Example, `inputDir=images ajanta`.- `inputDir` - Specify the input directory, defaults to `process.cwd()`.
- `resolutions` - A comma separated list of image resolutions.
- `webp` - If webp images are needed. Defaults to `true`.### License
MIT © [Sivasubramanyam A](https://sivasubramanyam.me)