aaphoto1
Automatic color correction of photos
Usage
aaphoto [option
[s]]
[source
file
[s]]
Overview
Auto Adjust Photo is a tiny command-line image manipulation tool for automatic color correction of photos. It tries to make the picture look better. The program does this by analyzing the input image and then sets the most optimal contrast, gamma, color balance and saturation for it.
The following image types are supported (thanks to JasPer, JPEG and PNG):
mif, pnm / pgm / ppm, bmp, ras, jp2, jpc, jpg, png
Quality settings can be applied only to jp2, jpc, jpg formats
Options
The following options are supported:
-
-h --help -
Print this help
-
-v --version -
Print version information
-
-a --autoadjust -
Auto adjust the colors of the image
-
-o --output -
Set output directory
-
--overwrite -
Overwrite mode, the original source file is replaced
-
--jpg -
JPG image output
-
--jp2 -
JPEG 2000 image output
-
--png -
PNG image output with alpha channel support
-
--bmp -
BMP image output
-
-r --resize -
Resize image taking the longer side in % or pixels
-
--rotate90 -
Rotate image with 90 degrees clockwise
-
--rotate180 -
Rotate image with 180 degrees
-
--rotate270 -
Rotate image with 90 degrees counter-clockwise
-
--flipx -
Mirror image horizontally
-
--flipy -
Mirror image vertically
-
--noexif -
Save image without EXIF info
-
-q --quality -
Set image quality from 1 to 100
-
-t --threads -
Set number of working threads (default: autodetect)
-
-s --silent -
Silent mode, no information printed during operation
-
--quiet -
Same as -s, --silent
-
-V --verbose -
Print verbose information about processing
-
--test -
Print detailed test information into image
Examples
aaphoto folders
aaphoto image.jpg
aaphoto -a -r600 -q85 *.jpg
aaphoto mydir
aaphoto -V --resize70% image.png
aaphoto --quality60 image.jp2
aaphoto image.jp2
Remarks
- auto adjust parameter is set by default without any other parameters
- a _new filename will be generated without --overwrite parameter
- every file is processed on directory input but not recursively
- order of parameters does not matter
- resize value can be set in percentage too
- resize parameter should be less or equal than original
- resize uses the best (and slowest) resampling method
- default jpeg compression quality is 95%
- EXIF information is restored in jpeg images by default
- number of threads is set to the number of online processors by default
Releases
8 releases since Debian 6.0 (Squeeze); the text changed 2 times.