def putchunk(fp, cid, *data):
 data = ''.join(data)
 fp.write((o32(len(data)) + cid))
 fp.write(data)
 (hi, lo) = Image.core.crc32(data, Image.core.crc32(cid))
 fp.write((o16(hi) + o16(lo)))

def putchunk ( fp , cid , * data ) : data = '' . join ( data ) fp . write ( ( o32 ( len ( data ) ) + cid ) ) fp . write ( data ) ( hi , lo ) = Image . core . crc32 ( data , Image . core . crc32 ( cid ) ) fp . write ( ( o16 ( hi ) + o16 ( lo ) ) )
write a png chunk .