diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2010-01-17 14:01:08 +0100 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2010-01-17 14:01:08 +0100 |
commit | 81afdf65eec5aab15f3321a0ae86a86fabef8f3e (patch) | |
tree | e6a329b5f9c4d6204fffb155736427476d3b18ca /src | |
parent | e20ff63816bf29a6605d35bd65423aa7ea672672 (diff) | |
download | pyexiv2-81afdf65eec5aab15f3321a0ae86a86fabef8f3e.tar.gz |
IPTC: when setting the values of a tag, use its raw_values.
Trying to re-convert its values is costly and more error-prone.
Diffstat (limited to 'src')
-rw-r--r-- | src/pyexiv2/metadata.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pyexiv2/metadata.py b/src/pyexiv2/metadata.py index c3ca2a6..ede1885 100644 --- a/src/pyexiv2/metadata.py +++ b/src/pyexiv2/metadata.py @@ -177,7 +177,7 @@ class ImageMetadata(object): # overwritten. if not isinstance(tag, IptcTag): raise TypeError('Expecting an IptcTag') - self._image.setIptcTagValues(tag.key, tag.to_string_list()) + self._image.setIptcTagValues(tag.key, tag.raw_values) self._tags['iptc'][tag.key] = tag tag.metadata = self |