Monday, November 07, 2005

jpeg comment

Using Gheorghe Milas' jpeg.py it's now possible to do comment read writing. . (as well as other exif info, but check his site for more info).
import jpeg

#read/write JPEG comments (aka the COM area)
jpeg.getComments(file)
jpeg.setComments(txt, file)

Looks promising wouldn't you say? :D