Commit Graph
142 Commits
Author SHA1 Message Date
javl 0d87fa98e6 Update credits 2019-11-30 14:57:20 +01:00
javl 94c07d3595 update some notes on page 2019-11-30 14:57:14 +01:00
Jasper van LoenenandGitHub a2a2e396df Merge pull request #27 from jochenderwae/support_565_and_mask_bitmaps
Support RGB 565 and mask bitmaps
2019-11-30 14:54:11 +01:00
Jochen Derwae 9654bb6582 Reinstated the code to convert canvas contents to black and white and made it conditional based on the selected conversion function 2019-11-19 17:03:11 +01:00
Jochen Derwae eab5bd744f Added fill style for transparent background (erase buffer to full transparency) 2019-11-12 20:10:23 +01:00
Jochen Derwae 0178ece9e3 Updated imageToString() to remove the now deprecated orientation parameter
Updated outputString() to deal with the updated imageToString()
2019-11-12 16:41:55 +01:00
Jochen Derwae 10b7cf3a65 Updated horizontal565() to output 16bit hex strings
Added getType() to determine the arduino array type of the output
Updated outputString() to use the new getType() function
2019-11-12 16:31:59 +01:00
Jochen Derwae 8146ef5b13 Added support for RGB 565 images (16 bit colors) and transparency bitmasks for use with a ST7789 (or similar) display. Look at the Adafruit_GFX::drawRGBBitmap functions for using these bitmaps.
UI changes:
 - added a "Transparent" option in "Background color" selection
 - replaced drawMode radio buttons with a drop-down list
 - added a div (id=note1bit) around the note to switch to vertical mode

Code changes:
 - added a ConversionFunctions object to hold the conversion functions (this makes it extendable towards more formats)
 - renamed imageToStringHorizontal() to horizontal1bit()
 - renamed imageToStringVertical() to vertical1bit()
 - added horizontal565() to generate 16 bit 565 RGB images
 - added horizontalAlpha() to generate transparency masks based on the image alpha value
 - added conversionFunction to settings object
 - added updateDrawMode() to handle the draw mode selection - also hides the note when using the new modes
 - updated place_image() to skip background fill in case transparency is selected
 - updated place_image(), commented out the conversion to black & white. Not sure at this time how to enable it again... drawMode?
 - updated imageToString() to use the conversionFunction from settings
 - moved getting the image raw data array from the conversion functions imageToString()
2019-11-12 15:14:26 +01:00
javl 7f10be0721 When using horizontal or vertical alignment, always round to the nearest pixel to prevent artifacts. Fixes 23 2019-10-07 16:37:06 +02:00
javl 313217f8bc fix removing all end of line commas, instead of just the last one 2019-10-07 16:23:34 +02:00
Jasper van LoenenandGitHub d316261abf Update README.md 2019-02-21 13:28:17 +01:00
Jasper van LoenenandGitHub d96859b120 Update README.md 2018-10-08 15:07:30 +02:00
javl 02feb47b37 Small text change 2018-10-08 15:05:56 +02:00
javl 68eddf6d20 Merge branch 'master' into gh-pages 2018-10-08 14:51:13 +02:00
javl ee872fd590 Fixes problem with small images
This should finally fix the problem with small images getting distorted.
Problem appears to have been that with some sizes (basically
everything that wasn't divisible by 8) the last part of a row would be
merged with the first part of the last row, creating an offset that
increased with every next row.

This update pads every last byte of a row with zeros to fill out to 8
bits.

Closing #21
2018-10-08 14:50:47 +02:00
javl 14f730356d Merge branch 'master' into gh-pages 2018-07-24 16:56:44 +02:00
javl b35bb67725 Removes Chrome-only CSS 2018-07-24 16:56:30 +02:00
javl 9332293e77 Updates intro text 2018-07-24 16:34:55 +02:00
javl c18d5845ab Merge branch 'master' into gh-pages 2018-07-19 19:44:51 +02:00
Jasper van LoenenandGitHub 3abc7d9f4c Update credits 2018-07-19 19:44:09 +02:00
Jasper van LoenenandGitHub 9dafa153c1 Merge pull request #20 from whoisnian/master
Fixed the error when convert image into codes in vertical mode
2018-07-19 19:42:49 +02:00
whoisnian 0053f736ff update settings['screenWidth'] when convert bytestring into an image 2018-07-20 01:33:18 +08:00
whoisnian b3565df79f fixed the error when convert image into codes in vertical mode 2018-07-20 00:20:26 +08:00
javl 273f5b1236 Merge branch 'master' into gh-pages 2018-05-24 12:19:39 +02:00
javl c2dbefed97 Update text 2018-05-24 12:19:04 +02:00
javl 84d4091ac7 Formatting JS 2018-05-24 12:04:18 +02:00
javl 5c38e85d58 CSS formatting 2018-05-24 11:36:53 +02:00
javl 044a4e3db9 Fix way trailing whitespace+comma gets removed from code
Closes #18

Instead of removing an x-amount of characters from the strings to get
rid of trailing commas, a regular expression is now used.
2018-05-24 11:31:54 +02:00
javl a1732fba08 Revert "Adds option to use image from URL"
This reverts commit 50eb3a58a9.
2018-04-10 00:18:26 +02:00
javl 50eb3a58a9 Adds option to use image from URL 2018-04-10 00:04:43 +02:00
javl 43820ab394 Adds image size to comment in code output
Closes issue #13
2018-01-14 17:35:30 +01:00
javl 24e85b89b4 Merge branch 'master' into gh-pages 2018-01-14 17:18:31 +01:00
javl 105ddb0530 Updates credits in readme 2018-01-14 17:17:18 +01:00
Jasper van LoenenandGitHub 3784a30808 Merge pull request #14 from davidalim/master
Update numerical inputs to "number" type
2018-01-14 17:15:24 +01:00
davidalim 7159e45cce Update numerical inputs to "number" type
-Better numerical input experience with scrolling and ranges
-Makes it easier to adjust the brightness threshold
2018-01-14 00:57:29 -08:00
Jasper van LoenenandGitHub 9905389eb9 Adds link to Adafruit Github profile 2017-06-12 18:52:22 +02:00
javl 1b168204b5 Merge branch 'master' into gh-pages 2017-04-28 01:09:22 +02:00
javl bfc03e010c Fix removing images
Closes #7
You are now able to remove images all imags again

Closes #10
All images will now get exported instead of only the ones uploaded last
2017-04-28 01:09:08 +02:00
javl 57853965a7 Minor layout change 2017-04-28 01:03:17 +02:00
javl 324d5f6a9f Slightly changes color of canvas border 2017-04-28 00:19:21 +02:00
javl f3a412d0fe Merge branch 'master' into gh-pages 2017-04-28 00:16:26 +02:00
javl 5163545e3b Comments are now stripped from input before converting 2017-04-28 00:16:18 +02:00
javl 12ba183a56 Merge branch 'master' into gh-pages 2017-04-28 00:07:08 +02:00
javl 13eb816053 Shows an error when converting from string fails 2017-04-28 00:06:22 +02:00
javl 9207eb36cd Merge branch 'master' into gh-pages 2017-04-27 23:54:22 +02:00
javl e6e371ad9b Fixes issue #1
Some images didn't get converted properly. This was easy to
spot in smaller image where the last part seemed to be missing.
Each of the hex values generated stands for a byte = 8 bits =
8 pixels. But sometimes the size of the image caused the last
hex value to contain less than 8 bits (because there weren't
enough pixels left). As the hex values represent 8 pixels being drawn
right to left, the missing bits would cause the pixels to move out
of the canvas.
The solution is to always pad the last hex to a length of 8.
.
2017-04-27 23:44:56 +02:00
javl cb761d138b First step in combining some double code 2017-04-27 23:02:00 +02:00
javl b51546a799 Minor code cleanup 2017-04-27 22:51:21 +02:00
javl e3d3173362 Merge branch 'master' into gh-pages 2016-11-14 13:08:03 +01:00
javl 3aba39972d Merge branch 'master' of https://github.com/javl/image2cpp
Conflicts:
	index.html
2016-11-14 13:07:28 +01:00