commit 887af2a8e51855d21f136cbe47a9c733ace924e7 Author: Niles Rogoff Date: Sat Aug 6 22:12:34 2016 -0400 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7e9ddf3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +out +*.png +tmp diff --git a/README.md b/README.md new file mode 100644 index 0000000..e28ed65 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +This is mostly for backup purposes, the chances that you actually want to get this up and running on your own server when you could just as easily run the [2bit](https://gitla.in/nilesrogoff/2bit) project from the command line are slim. + +Note that this struggles with images more than a few dozen kilobytes. Even 100 is usually too many. Please be gentle with it. diff --git a/index.html b/index.html new file mode 100644 index 0000000..3c79083 --- /dev/null +++ b/index.html @@ -0,0 +1,134 @@ + + + + 2bit + + + + +
+ File:
+
+ +
+
+
+ Bits:
+
+ 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 +
+ bits per pixel
+ bits per color per pixel +
+
+
+ Dither:
+
+ None +
+ % +
+ Auto +
+
+ Non random dither:
+
+ None +
+ px +
+ Auto +
+
+
+ +
+
+ The only precomputed values for dither and non-random dither are none, 15%, 50% and auto, and none, 7px, 10px and auto respectively + + + + + + diff --git a/render.pyhtml b/render.pyhtml new file mode 120000 index 0000000..06f2450 --- /dev/null +++ b/render.pyhtml @@ -0,0 +1 @@ +/var/www-python/render.pyhtml \ No newline at end of file