| python Programming Glossary: maxgrayHow to write PIL image filter for plain pgm format? http://stackoverflow.com/questions/4270700/how-to-write-pil-image-filter-for-plain-pgm-format  filename try inFile open filename header None size None maxGray None data for line in inFile stripped line.strip if stripped.. stripped elif size None  size map int stripped.split  elif maxGray None  maxGray int stripped else  for item in stripped.split.. size None  size map int stripped.split  elif maxGray None  maxGray int stripped else  for item in stripped.split  data.append int.. 
 |