From 81afdf65eec5aab15f3321a0ae86a86fabef8f3e Mon Sep 17 00:00:00 2001 From: Olivier Tilloy Date: Sun, 17 Jan 2010 14:01:08 +0100 Subject: IPTC: when setting the values of a tag, use its raw_values. Trying to re-convert its values is costly and more error-prone. --- src/pyexiv2/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit