I was wondering if someone could post an example using PyPNG to read a 48-bit image (16 bit channel R,G, and B), get and display a specific pixel color (say pixel 88 or whatever), change that value, and write it back into the png. I found the documentation to be very sparse, any help would be greatly appreciated.
def readPNG2(f):
r=png.Reader(f)
r.read()
print r.bitdepth
this produces a result of 16. I saved my image out of Photoshop as 16 per channel (48-bit). What am I missing, is this in fact saying 16 bits per channel?