From 0a24b07cd41e7d645641d5af1acb99890cdd3772 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 11 Apr 2015 22:43:06 +0200 Subject: 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. --- libmat/exiftool.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libmat') 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): ''' def _set_allowed(self): self.allowed.update(['Bit Depth', 'Color Type', - 'Compression', 'Filter', 'Interlace', 'Pixels Per Unit X', + 'Compression', 'Filter', 'Interlace', 'Palette', + 'Pixels Per Unit X', 'Pixels Per Unit Y', 'Pixel Units', 'Significant Bits', 'Background Color', 'SRGB Rendering']) -- cgit v1.3