summaryrefslogtreecommitdiff
path: root/src/images.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/images.py')
-rw-r--r--src/images.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/images.py b/src/images.py
index afc0658..2c1fd2e 100644
--- a/src/images.py
+++ b/src/images.py
@@ -10,6 +10,7 @@ from gi.repository import GdkPixbuf
10 10
11from . import abstract 11from . import abstract
12 12
13
13class PNGParser(abstract.AbstractParser): 14class PNGParser(abstract.AbstractParser):
14 mimetypes = {'image/png', } 15 mimetypes = {'image/png', }
15 meta_whitelist = {'SourceFile', 'ExifToolVersion', 'FileName', 16 meta_whitelist = {'SourceFile', 'ExifToolVersion', 'FileName',
@@ -31,6 +32,7 @@ class PNGParser(abstract.AbstractParser):
31 surface.write_to_png(self.output_filename) 32 surface.write_to_png(self.output_filename)
32 return True 33 return True
33 34
35
34class GdkPixbufAbstractParser(abstract.AbstractParser): 36class GdkPixbufAbstractParser(abstract.AbstractParser):
35 """ GdkPixbuf can handle a lot of surfaces, so we're rending images on it, 37 """ GdkPixbuf can handle a lot of surfaces, so we're rending images on it,
36 this has the side-effect of removing metadata completely. 38 this has the side-effect of removing metadata completely.