tUpdated example - cross-stitch - interactively turn images into patterns for cross stitching
HTML git clone git://src.adamsgaard.dk/cross-stitch
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
DIR commit e9dd9328bf2d71741a60bf9b015f619bbf2eae38
DIR parent c46602b0d9581a1646bdc70caa4d84b701535c69
HTML Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Thu, 13 Feb 2014 22:29:18 +0100
Updated example
Diffstat:
M Makefile | 2 +-
M cross-stitch.py | 2 +-
M fisker-pattern.png | 0
3 files changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/Makefile b/Makefile
t@@ -2,7 +2,7 @@ README.rst: generate-readme.sh cross-stitch.py fisker-pattern.png
@bash $< $@
fisker-pattern.png: cross-stitch.py fiskeren.jpg
- @python $< -i fiskeren.jpg -o $@
+ @python $< -i fiskeren.jpg -o $@ -w 50
clean:
$(RM) README.rst
DIR diff --git a/cross-stitch.py b/cross-stitch.py
t@@ -24,7 +24,7 @@ parser.add_argument('--width', '-w', type=int, nargs=1, default=20,
args = parser.parse_args()
infile = args.infile[0]
outfile = args.outfile[0]
-width = args.width
+width = args.width[0]
## Read image ##################################################################
try:
DIR diff --git a/fisker-pattern.png b/fisker-pattern.png
Binary files differ.