Code Monkey home page Code Monkey logo

imp's Introduction

Imp

A simple command-line image manipulation program. Supports reading and writing GIF, JPEG, and PNG files.

Installation

Installing via go:

go get -u github.com/jangler/imp

If you use Arch Linux or a derivative, you may also install via the AUR package.

Usage

Usage:
	imp <infile> [-q <n>] [<outfile>] [<filter> ...]
	imp help [<filter>]
	imp version

Applies filters to the image 'infile' and writes the result to 'outfile'.
If 'outfile' is not given, 'infile' is overwritten.

The -q option, if given, controls JPEG quality (1-100). The default is 100.

Filters are applied in the given order and may be invoked multiple times.

Filters:
	blur <radius> <power>
	crop <x> <y> <w> <h>
	impose <layer> <file> [<x> <y>]
	join <file> <edge> [<align>]
	lum <factor> [<gFactor> <bFactor> [<aFactor>]]
	mask <file>
	palette <file>
	rotate <degrees>
	sat <factor>
	scale <w> <h>

Examples

Convert a PNG to a low-quality JPEG:

imp image.png -q 30 image.jpg

Crop an image to its top-right quarter, in-place:

imp image.png crop 50% 0 50% 50%

Scale an image to a 16x16 icon, rotate it 90° clockwise, and tint it dark red:

imp image.png icon.png scale 16 16 rotate 90 lum 0.75 0.25 0.25

Join several images together:

imp ne.png result.png join nw.png right join s.png bottom

imp's People

Contributors

jangler avatar

Watchers

 avatar  avatar  avatar

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.