![]() ![]() Once you have binary image file you could test it with Adobe Photoshop or even download Imagemagick binary releases to identify file format. ![]() If you see hexadecimal byte image file, then it is base-64 encoded, first you should decode it back to binary image file. This 8 pixel chunk is then output as a hexadecimal byte. I know I am so close to getting this working, but I lack a total understanding of bit / byta array coding Once I can at least get PHP to dump out the correct byte array to the screen (and manually copy this into my sketch to print out) then I can focus on sending this data to the Arduino via HTTP POST How can I duplicate this with PHP? I understand how to scan rows and columns - but I don't get the 8 pixel chunk going to the byte array (c++ byte array according to the code comments) It then checks to see if these are black (or below a certain threshhold) and then sets the bit. From what I can see, the processing script scans each row of pixels, and groups them into 8 bits. The section I am most stuck with is how to convert my image into a byte array. The main issue I have is getting the image data to print.įor the sake of testing (and because I am happy enough to code the HTML5 and PHP image handling) I can upload an image to my server and pretend this is the one generated from the canvas. ![]() I think your Plan B is best for me because I am sure I can do the first 2 steps easily (HTML Canvas / PHP Server). Sonnyyu, thank you for your thorough replies. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |