The BMP file format, or bitmap, is a raster graphics image file format used to store bitmap digital images, independently of the display device. (Wikipedia)
Metadata is "data that provides information about other data", but not the content of the data itself. Image file headers are metadata. They are part of an image file that describes the image in the file. For example, width, height, pixel size, etc.
In this project you will access the raw bytes of a BMP image file, read the file headers, and write the image pixels into a graphics window.
To see code that can access BMP files as bytes click HERE .
Use the simple graphics library graphics.py.
Click HERE
Note: In real life you would use a better, faster, more efficient graphics library. But, graphics.py is an excellent library for learning.
Create an interactive BMP 24-bit pixel row padding calculator. Ask the user to enter the number of pixels. Display the number of pixels and the padding.
In this project you will access the raw bytes of a PNG image file and display its header information. (Expand this project by writing the pixels into a graphics window?)
PNG (Wikipedia)
PNG (Portable Network Graphics) Specification, Version 1.2
The same as Project #1 except use Python's Pillow module.
Note: The pillow library is the successor to the PIL library. It still uses the PIL package name to serve as a drop-in replacement.The same as Project #3 except use Python's Pillow module.
The same as Project #3 except use JPG or GIF images.
First create the code to access BMP header and pixels. Then add the graphics.
I suggest you create small BPM files using a paint program (like Windows paint). I used a Mona Lisa image, 50x57 pixels, for testing.