cross-stitch

Interactively turn images into patterns for cross stitching
git clone git://src.adamsgaard.dk/cross-stitch
Log | Files | Refs

commit 2b1f83e82edbe8520b5fb058b505c6edd7fa1830
parent 2a467544ba8dc18921d1e35d598c48c591d2793b
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date:   Thu, 13 Feb 2014 22:24:42 +0100

updated help description

Diffstat:
MREADME.rst | 11++++++-----
Mcross-stitch.py | 6+++---
Mgenerate-readme.sh | 2++
3 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/README.rst b/README.rst @@ -29,18 +29,17 @@ Usage ----- -usage: cross-stitch.py [-h] --infile FILENAME --outfile FILENAME - [--width WIDTH] +usage: cross-stitch.py [-h] --infile file --outfile file [--width WIDTH] Downsamples and modifies an image in order to create a pattern for cross stitching. optional arguments: -h, --help show this help message and exit - --infile FILENAME, -i FILENAME + --infile file, -i file input image to process - --outfile FILENAME, -o FILENAME - save processed image as FILENAME + --outfile file, -o file + save processed image as file --width WIDTH, -w WIDTH canvas width, default value = 20 @@ -52,9 +51,11 @@ Example .. image:: fiskeren.jpg :scale: 50 % :alt: Original image + :align: center .. image:: fisker-pattern.png :scale: 60 % :alt: Cross stitching pattern + :align: center diff --git a/cross-stitch.py b/cross-stitch.py @@ -13,10 +13,10 @@ program_description = \ '''Downsamples and modifies an image in order to create a pattern for cross stitching.''' parser = argparse.ArgumentParser(description = program_description) -parser.add_argument('--infile', '-i', metavar='FILENAME', type=str, nargs=1, +parser.add_argument('--infile', '-i', metavar='file', type=str, nargs=1, required=True, help='input image to process') -parser.add_argument('--outfile', '-o', metavar='FILENAME', type=str, nargs=1, - required=True, help='save processed image as FILENAME') +parser.add_argument('--outfile', '-o', metavar='file', type=str, nargs=1, + required=True, help='save processed image as file') parser.add_argument('--width', '-w', type=int, nargs=1, default=20, help='canvas width, default value = 20') #parser.add_argument('--n-colors', '-c', type=int, nargs=1, default=10, diff --git a/generate-readme.sh b/generate-readme.sh @@ -47,10 +47,12 @@ Example .. image:: fiskeren.jpg :scale: 50 % :alt: Original image + :align: center .. image:: fisker-pattern.png :scale: 60 % :alt: Cross stitching pattern + :align: center "