diff options
| author | jvoisin | 2018-04-04 23:21:48 +0200 |
|---|---|---|
| committer | jvoisin | 2018-04-04 23:21:48 +0200 |
| commit | 0239ab3b6a6ae38dbf5ba439f91f0cee498711a9 (patch) | |
| tree | 19159991a5fe0d504ebbd2396800a9a1fda38a09 /src/images.py | |
| parent | 9fa76c4c2038a776cc94af5d9f307bbaad52083c (diff) | |
Add some white lines to make the code more compliant
Diffstat (limited to 'src/images.py')
| -rw-r--r-- | src/images.py | 2 |
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 | ||
| 11 | from . import abstract | 11 | from . import abstract |
| 12 | 12 | ||
| 13 | |||
| 13 | class PNGParser(abstract.AbstractParser): | 14 | class 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 | |||
| 34 | class GdkPixbufAbstractParser(abstract.AbstractParser): | 36 | class 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. |
