From f7082a21d6511c5069fbb9ff186ce22f3e22fed7 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 7 Jun 2011 18:40:44 +0200 Subject: First commit --- lib/check/images/jpg.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lib/check/images/jpg.py (limited to 'lib/check') diff --git a/lib/check/images/jpg.py b/lib/check/images/jpg.py new file mode 100644 index 0000000..7f29587 --- /dev/null +++ b/lib/check/images/jpg.py @@ -0,0 +1,17 @@ +import hachoir_core.error +import hachoir_core.cmd_line +import hachoir_parser +import hachoir_metadata +import sys +import mat + + +class JpegStripper(file): + def checkField(self, field): + print(field.description) + if field.name.startswith("comment"): + return True + return field.name in ("photoshop", "exif", "adobe") + return False + + -- cgit v1.3