Skip to content

A ChRIS app to create a png overlay using 2 images

License

Notifications You must be signed in to change notification settings

FNNDSC/pl-png_overlay

Repository files navigation

pl-png_overlay

https://img.shields.io/docker/v/fnndsc/pl-png_overlay?sort=semver https://img.shields.io/github/license/fnndsc/pl-png_overlay

An app to create an overlay PNG with two input PNGs

png_overlay is a ChRIS ds-type application that takes in ... as ... files and produces ...

docker run --rm fnndsc/pl-png_overlay png_overlay
    [-b|--background <bgFileName>]
    [-o|--overlay <overlayFileName>]
    [-s|--outputFileName <opFileName>]
    [-h|--help]
    [--json] [--man] [--meta]
    [--savejson <DIR>]
    [-v|--verbosity <level>]
    [--version]
    <inputDir> <outputDir>
[-b|--background <bgFileName>]
Name of the input background file.
Default is 'leg.png'

[-o|--overlay <overlayFileName>]
Name of the input overlay/mask file.
Default is 'composite.png'

[-s|--outputFileName <opFileName>]
Name of the output file.
Default is 'overlay.png'

[-h] [--help]
If specified, show help message and exit.

[--json]
If specified, show json representation of app and exit.

[--man]
If specified, print (this) man page and exit.

[--meta]
If specified, print plugin meta data and exit.

[--savejson <DIR>]
If specified, save json representation file to DIR and exit.

[-v <level>] [--verbosity <level>]
Verbosity level for app. Not used currently.

[--version]
If specified, print version number and exit.

Getting inline help is:

docker run --rm fnndsc/pl-png_overlay png_overlay --man

You need to specify input and output directories using the -v flag to docker run.

docker run --rm -u $(id -u)                             \
    -v $(pwd)/in:/incoming -v $(pwd)/out:/outgoing      \
    fnndsc/pl-png_overlay png_overlay                        \
    /incoming /outgoing

Build the Docker container:

docker build -t local/pl-png_overlay .

Run unit tests:

docker run --rm local/pl-png_overlay nosetests

Put some examples here!

https://raw.githubusercontent.com/FNNDSC/cookiecutter-chrisapp/master/doc/assets/badge/light.png