Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/uzyn/print-prep

Digicam photos prep for print shops
https://github.com/uzyn/print-prep

Last synced: 11 days ago
JSON representation

Digicam photos prep for print shops

Awesome Lists containing this project

README

        

# print-prep
Digicam photo prep for print shops.

[![Build Status](https://travis-ci.org/uzyn/print-prep.svg?branch=master)](https://travis-ci.org/uzyn/print-prep)

### Help
```
printprep [] [] []

source Defaults to current directory
destination Defaults to the same as source

Options:
-p, --position Position photo at center, left, or right, defaults to `--position=right`.
-c, --color Background color, if original photo does not fill up the whole resulting photo, defaults to `--color=white`.
-b, --background Background image.
-r, --ratio Resulting ratio, defaults to `--ratio=3:2`.
-n, --normalize Enhance output photo contrast by stretching its luminance to cover the full dynamic range.
-e, --ext Specify extensions, defaults to `--ext=jpg,jpeg,tiff,png`.
-f, --fillup Expand to fill up the whole resulting photo, may lose parts of source, defaults to unset (false).
-o, --occupancy Specify the percentage of photo occupancy. Setting this automatically enables `--fillup`.
-i, --config Load JSON configuration. It useful for multi-pass support as otherwise it's very difficult to specify everything in command line. By default, print-prep will auto load a JSON configuration named as printprep.config.json.
-v, --verbose Show more debug information.
```

### Example JSON Configuration

```javascript
[
{
"source": "example.jpg",
"output": "./prepare/example.jpg",
"position": "center",
"color": "white",
"ratio": "4:3"
},
{
"source": "./prepare/example.jpg",
"output": "./done/example.jpg",
"background": "background.jpg",
"color": "white",
"ratio": "3:2"
}
]
```

### Notes

- `printprep` always rotate photos to landscape because printers are orientation agnostics.