Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed name of output file. Added usage info to README.

  • Loading branch information...
commit 2fc13032b328e0dad5af9834104d1304f5b4294f 1 parent e2e3831
@Kelloggs Kelloggs authored
Showing with 6 additions and 1 deletion.
  1. +5 −0 README.md
  2. +1 −1  buegelperl.py
View
5 README.md
@@ -4,4 +4,9 @@ Converts an image to a [Buegelperlen](http://de.wikipedia.org/wiki/Bügelperlen)
I know this is stupid.
+## Usage
+
+python buegelper.py [imagename]
+
+The result image is a tiff file. Change the size to the size of your Buegelperlennoppenfeld. We assume a rectangular Buegelperlennoppenfeld.
View
2  buegelperl.py
@@ -8,7 +8,7 @@
def main():
for infile in sys.argv[1:]:
- outfile = os.path.splitext(infile)[0] + ".tiff"
+ outfile = os.path.splitext(infile)[0] + "_result.tiff"
source = Image.open(infile)
source = source.resize((size[0] * 3, size[1] * 3))
result = k_means(source, 6)
Please sign in to comment.
Something went wrong with that request. Please try again.