Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/DavidBuchanan314/hello_png
Example code from my blog post of the same title
https://github.com/DavidBuchanan314/hello_png
blog png png-encoder sample-code
Last synced: about 1 month ago
JSON representation
Example code from my blog post of the same title
- Host: GitHub
- URL: https://github.com/DavidBuchanan314/hello_png
- Owner: DavidBuchanan314
- License: mit
- Created: 2023-01-16T12:06:25.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-17T01:18:26.000Z (almost 2 years ago)
- Last Synced: 2024-11-15T04:23:12.030Z (about 1 month ago)
- Topics: blog, png, png-encoder, sample-code
- Language: Python
- Homepage: https://www.da.vidbuchanan.co.uk/blog/hello-png.html
- Size: 414 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hello PNG
This repo contains code that accompanies my blog post of the same title: https://www.da.vidbuchanan.co.uk/blog/hello-png.html
`hello_png_0.py` is the first example given in the article, resulting in `./samples/out_0.png`, which has the skeleton of a PNG file but contains no valid data.
`hello_png_1.py` is the final example given in the article, resulting in `./samples/out_1.png`, which *should* be a completely valid PNG file, visually identical to `./samples/hello_png_original.png`. It's larger than the original, for reasons outlined in the article.