Skip to content

DavidBuchanan314/hello_png

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
January 16, 2023 17:49
January 16, 2023 12:06
January 16, 2023 12:06
January 17, 2023 01:18
January 16, 2023 21:09

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.

About

Example code from my blog post of the same title

Topics

Resources

License

Stars

Watchers

Forks

Languages