shithub: ifilter

Clone

clone: git://shithub.us/phil9/ifilter gits://shithub.us/phil9/ifilter
push: hjgit://shithub.us/phil9/ifilter
patches to: telephil9@gmail.com

Last commit

bf1934aa – phil9 <telephil9@gmail.com> authored on 2021/12/02 00:12
cfilter: properly handle alpha images

About

ifilter
=======
Basic image filters.

Filters read an image from standard input, apply a transformation
and dumps the resulting image to standard output.

cfilter:
--------
cfilter implements basic color filters.

Usage: cfilter [-f factor] [grayscale|sepia|invert|shade|tint]

Available filters are:
- grayscale
- sepia
- invert
- shade(1)
- tint(1)

1: these filters use the factor argument

blur:
-----
blur implements blurring algorithms.

Usage: blur [-s size] [box|pixelate]

Available filters are:
- box: 3x3 box blur
- gaussian: Gaussian blur using `-s` as the convolution kernel radius (ie kernel will be a matrix r*r with r=2*size+1)
- pixelate: a simple pixelation filter using `-s` argument as pixel size