Skip to content

FaKleiser/blim

Repository files navigation

blim

npm GitHub Workflow Status

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:

Usage

$ 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
...

Commands

blim help [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

blim optimize [FILE]

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

Contributing

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.

About

Blazing fast image optimisation for blog post images

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors