https://github.com/jangler/imp
A simple command-line image manipulation program
https://github.com/jangler/imp
Last synced: about 1 month ago
JSON representation
A simple command-line image manipulation program
- Host: GitHub
- URL: https://github.com/jangler/imp
- Owner: jangler
- License: mit
- Created: 2015-04-25T11:34:52.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2022-04-07T02:28:08.000Z (about 3 years ago)
- Last Synced: 2025-01-27T13:49:40.026Z (3 months ago)
- Language: Go
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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](https://aur.archlinux.org/packages/imp/).Usage
-----
Usage:
imp [-q ] [] [ ...]
imp help []
imp versionApplies 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
crop
impose [ ]
join []
lum [ []]
mask
palette
rotate
sat
scaleExamples
--------
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