From eaf55aec004d24ba009756442dee6c5445e70695 Mon Sep 17 00:00:00 2001
From: vince damiani
Date: Fri, 4 Nov 2016 16:37:01 +0100
Subject: [PATCH 1/9] multiple-files
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
1. Re-arranged html structure, used html5 features.
2. Added multiple images capability, images can be added one-by-one or
selecting them with ctrl/cmd from the file dialog.
4. Output for multiple images can be represented by a single byte array
or with a byte array for each images, its identifier will be increased
with a trailing counter.
3. Added ‘GFXfontBitmap’ support.
4. Other smaller improvement.
NOTE: still under testing.
---
index.html | 797 ++++++++++++++++++++++++++++++++++++++++-------------
1 file changed, 606 insertions(+), 191 deletions(-)
diff --git a/index.html b/index.html
index 60b0dee..ef43c5b 100644
--- a/index.html
+++ b/index.html
@@ -3,161 +3,341 @@
Original utility by:
https://jaspervanloenen.com
- This is a modified version by:
- https://wiredolphine.net
+ This is the 2nd revision of the modified version by:
+ https://wiredolphin.net
-->
image2cpp
+
- * pixels
-
-
-
- 0 - 255; pixels with brightness above become white, below become black.
-
-
-
-
-
- Centering the image only works when using a canvas larger than the selected image.
-
-
-
-
-
-
+
+
+
+
+
+
+
Only images file type are allowed
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
0 - 255; pixels with brightness above become white, below become black.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ NOTE: Centering the image only works when using a canvas larger than the selected image.
+
+
+
+
3. Preview
-
-
-
-
-
-
+
+
+
+
+
4. Output
-
- Adds some extra Arduino code around the output for easy copy-paste into this example.
-
-
-
-
-
-
-
-
- If your image looks all messed up on your display, like the image below, try the other mode.
-
-
-
-
-
+
+
+
+
+
+
+
+
+ Adds some extra Arduino code around the output for easy copy-paste into
+ this example.
+ If multiple images are loaded, generates a byte array for each and appends a counter to the identifier.
+
+
+ Adds some extra Arduino code around the output for easy copy-paste.
+ If multiple images are loaded, generates a single byte array.
+
+
+ Creates a GFXbitmapFont formatted ouput. Used by a modified version of the Adafruit GFX library.
+ GitHub project and example here.
+
+ First ASCII character value is used only if a glyph identifier of length equal to 1 is not provided for each image. The value itself will be incremented by 1 for each glyph.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ If your image looks all messed up on your display, like the image below, try the other mode.
+
+
+
+
+
+
+
+
+
+
From bfe60c590da39ca77a8121450ad0936f09e8dc6a Mon Sep 17 00:00:00 2001
From: vincent
Date: Fri, 4 Nov 2016 16:57:15 +0100
Subject: [PATCH 2/9] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 5471ad5..c21f364 100644
--- a/README.md
+++ b/README.md
@@ -15,4 +15,4 @@ You can find a simple Arduino example sketch [over here](https://github.com/javl
I wrote the code with my 128x64 pixel monochrome OLED display in mind, but it should work with most similar displays. You might need to change some export settings; those are explained in the tool.
### Credit ###
-Initial code by [javl](https://github.com/javl), with aditional code by [wiredolphine](https://github.com/wiredolphin). The example sketch was made by Adafruit.
+Initial code by [javl](https://github.com/javl), with aditional code by [wiredolphin](https://github.com/wiredolphin). The example sketch was made by Adafruit.
From 88634133401ef9d11f82603024845d2b8bcf1576 Mon Sep 17 00:00:00 2001
From: vince damiani
Date: Sat, 5 Nov 2016 08:33:45 +0100
Subject: [PATCH 3/9] integrated image and minor improvements
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Example image encoded within html, no more external file required.
Added “no files selected” if no images are added.
---
index.html | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/index.html b/index.html
index ef43c5b..0c273ef 100644
--- a/index.html
+++ b/index.html
@@ -117,7 +117,8 @@
}
#extra-settings-container { }
#arduino-identifier, #adafruit-gfx-settings, #all-same-size { display: none; }
- .error-msg { color: #ff0000; font-size: 1.2em; display: none; }
+ .msg { font-size: 1.2em; }
+ .error-msg { color: #ff0000; display: none; }
@@ -151,7 +152,8 @@
-
Only images file type are allowed
+
Only images file type are allowed
+
No files selected
@@ -279,7 +281,9 @@
If your image looks all messed up on your display, like the image below, try the other mode.