Blazing fast image optimization for blog post images.
blim
helps you optimize images from the command line to be used on blogs.
Typically, blim
is within the context of statically generated pages.
Current features include:
- Resize and shrink images to a target width/height.
- Crop images automagically if the original image has a different aspect ratio than the desired output resolution.
- Compress images to reduce file size. Usually way better than what other tools do.
Table of contents:
- blim
- Usage
- Commands
- Contributing
- [Change Log](#change-logchangelogmd)
- [License](#licenselicense)
$ npm install -g blim
$ blim COMMAND
running command...
$ blim (-v|--version|version)
blim/0.0.2 darwin-x64 node-v10.17.0
$ blim --help [COMMAND]
USAGE
$ blim COMMAND
...
display help for blim
USAGE
$ blim help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
Optimize an image
USAGE
$ blim optimize [FILE]
OPTIONS
-f, --fit=cover|contain|fill|inside|outside
How to fit the width and height
-h, --height=height
The target height to resize to
-p, --position=top|right top|right|right bottom|bottom|left bottom|left|left
top|north|northeast|east|southeast|south|southwest|west|northwest|center|entropy|attention
When using a fit of cover or contain, use this flag to adjust where to crop
-w, --width=width
The target width to resize to
Open a PR :-)
See all changes made to this project in the change log. This project follows semantic versioning.
This project is licensed under the terms of the MIT license.
Project created and maintained by Fabian Keller.