Skip to content

Lost bytes #6

@barrct

Description

@barrct

50x50

If I take the basic 50x50 image that is attached here, both my C++ (Arduino) and an online tool are showing data corruption.
Basically a vertical line | is being skewed to /.

download

This can be tested my uploading the attached 50x50 jpg to the online example https://notisrac.github.io/FileToCArray/ then taking the HEX output and test the conversion back to an image online here https://mischianti.org/images-to-byte-array-online-converter-cpp-arduino/.

Oddly, the example Google.ico in the readme seems to work perfectly.

I have tested both jpg and bmp and was thinking it was me for 2 days until I started to count bits and tested the github test against converters.

Expected output can be created here https://www.digole.com/tools/PicturetoC_Hex_converter.php

These are the expected and actual arrays.

expected.txt
actual.txt

I'm happy to help out in any way that I can, this is a great tool to have JS get images into the correct format for e-Ink displays.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions