Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image: add extra test for monochrome images #7

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

aykevl
Copy link
Owner

@aykevl aykevl commented May 25, 2024

This PR needs tinygo-org/drivers#683 to be merged first.

I wanted to fix the TODO (whether the decoded image was actually valid)
but found that it wasn't:

  - The size wasn't correct. The TinyGo logo was actually 304x255 in
    size, not 299x255 (it looks like it was created with a tool that
    assumes every row starts at a byte aligned line, which image.Mono
    doesn't).
  - There seems to be a problem when the image is decoded as a
    pixel.Monochrome, but I haven't yet figured out why.
This test needs tinygo-org/drivers#683 to pass,
but I think it's a useful test regardless.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant