Fixed in the 0.2 branch. Note that IPTC tags now consistently handle their values, always expecting a list or tuple. They will not try to wrap a single value into a list (that would raise a TypeError).
The expected syntax for the original example would now look like this:
Fixed in the 0.2 branch. Note that IPTC tags now consistently handle their values, always expecting a list or tuple. They will not try to wrap a single value into a list (that would raise a TypeError).
The expected syntax for the original example would now look like this:
import pyexiv2, datetime ImageMetadata( 'sample. jpg') on2.DateCreated ' date.today( )]
metadata[ key].values = values
metadata[ key] = pyexiv2. IptcTag( key, values)
metadata = pyexiv2.
metadata.read()
key = 'Iptc.Applicati
values = [datetime.
if key in metadata.iptc_keys:
else: