Skip to content

incorrect jpeg header #1

@elgorwi

Description

@elgorwi

Nice testbench. However, ran into an issue when trying this out on my system.
The resulting jpeg is not recognised because of an incorrect header. It looks like the header.bin is read as a string rather than binary. Line 13 of interfaces.py should be changed as follows:

_jpeg_header = open("header.bin", "rb").read()

Or more pythonic:

with open("header.bin", "rb") as f:
    _jpeg_header = f.read()

With this change the testbench is running fine on my system

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