summaryrefslogtreecommitdiff
path: root/lib/images.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/images.py')
-rw-r--r--lib/images.py37
1 files changed, 0 insertions, 37 deletions
diff --git a/lib/images.py b/lib/images.py
deleted file mode 100644
index d090015..0000000
--- a/lib/images.py
+++ /dev/null
@@ -1,37 +0,0 @@
1'''
2 Takes care about pictures formats
3'''
4
5import parser
6
7
8class JpegStripper(parser.GenericParser):
9 '''
10 represents a jpeg file
11 '''
12 def _should_remove(self, field):
13 '''
14 return True if the field is compromizing
15 '''
16 if field.name.startswith('comment'):
17 return True
18 elif field.name in ("photoshop", "exif", "adobe"):
19 return True
20 else:
21 return False
22
23
24class PngStripper(parser.GenericParser):
25 '''
26 represents a png file
27 '''
28 def _should_remove(self, field):
29 '''
30 return True if the field is compromizing
31 '''
32 if field.name.startswith("text["):
33 return True
34 elif field.name is "time":
35 return True
36 else:
37 return False