IPTCInfo

Extract and modify IPTC (metadata) information on images
Download

IPTCInfo Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Tamas Gulacsi
  • Publisher web site:
  • http://bitbucket.org/gthomas/

IPTCInfo Tags


IPTCInfo Description

Extract and modify IPTC (metadata) information on images IPTCInfo is a port of the IPTCInfo Perl module by Josh Carter.Ever wish you add information to your photos like a caption, the place you took it, the date, and perhaps even keywords and categories? You already can. The International Press Telecommunications Council (IPTC) defines a format for exchanging meta-information in news content, and that includes photographs. You can embed all kinds of information in your images. The trick is putting it to use.That's where this IPTCInfo Python module comes into play. You can embed information using many programs, including Adobe Photoshop, and IPTCInfo will let your web server -- and other automated server programs -- pull it back out. You can use the information directly in Python programs, export it to XML, or even export SQL statements ready to be fed into a database.SYNOPSIS from iptcinfo import IPTCInfo import sys fn = (len(sys.argv) > 1 and ] or ) fn2 = (len(sys.argv) > 2 and ] or ) # Create new info object info = IPTCInfo(fn) # Check if file had IPTC data if len(info.data) < 4: raise Exception(info.error) # Print list of keywords, supplemental categories, contacts print info.keywords print info.supplementalCategories print info.contacts # Get specific attributes... caption = info.data # Create object for file that may does have IPTC data. # info = IPTCInfo(fn) # for files without IPTC data, use info = IPTCInfo(fn, force=True) # Add/change an attribute info.data = 'Witty caption here' info.data = # Save new info to file ##### See disclaimer in 'SAVING FILES' section ##### info.save() info.saveAs(fn2) #re-read IPTC info print IPTCInfo(fn2) Requirements: · Python


IPTCInfo Related Software