Giter Site home page Giter Site logo

blim's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.