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

Add examples #37

Open
klartext opened this issue Aug 1, 2020 · 1 comment
Open

Add examples #37

klartext opened this issue Aug 1, 2020 · 1 comment

Comments

@klartext
Copy link

klartext commented Aug 1, 2020

Please add examples for the base use cases, for example reading and writing an image and analyzing image data.

@cfcs
Copy link
Collaborator

cfcs commented Aug 22, 2020

If you have some concrete ideas we could add those to an examples/ directory; I'd be in favor of that.

For now, see the newly merged code:

  • imagetool reads and writes pictures, amongst other functionality.
  • basic unit test shows how to create an image and convert it to a PNG file byte string (and reading it back)
  • Image.compare shows how to deal with the pixel data.

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

No branches or pull requests

2 participants