summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2015-04-11 22:43:06 +0200
committerjvoisin2015-04-11 22:43:06 +0200
commit0a24b07cd41e7d645641d5af1acb99890cdd3772 (patch)
tree9f193d0690c27e22d026dff7dc91585ecbfb8fc5
parent342e9ef69bd8ac5841ccdab43813480f6db41112 (diff)
Fix an ods-related bug
Since exiftool can't remove the Palette field, let's whitelist it. And even if it could, this would really degrade the quality of the picture.
-rw-r--r--libmat/exiftool.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmat/exiftool.py b/libmat/exiftool.py
index 2c2a2b8..366ab12 100644
--- a/libmat/exiftool.py
+++ b/libmat/exiftool.py
@@ -76,6 +76,7 @@ class PngStripper(ExiftoolStripper):
76 ''' 76 '''
77 def _set_allowed(self): 77 def _set_allowed(self):
78 self.allowed.update(['Bit Depth', 'Color Type', 78 self.allowed.update(['Bit Depth', 'Color Type',
79 'Compression', 'Filter', 'Interlace', 'Pixels Per Unit X', 79 'Compression', 'Filter', 'Interlace', 'Palette',
80 'Pixels Per Unit X',
80 'Pixels Per Unit Y', 'Pixel Units', 'Significant Bits', 81 'Pixels Per Unit Y', 'Pixel Units', 'Significant Bits',
81 'Background Color', 'SRGB Rendering']) 82 'Background Color', 'SRGB Rendering'])