diff options
Diffstat (limited to 'lib/check')
| -rw-r--r-- | lib/check/images/jpg.py | 17 |
1 files changed, 17 insertions, 0 deletions
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 @@ | |||
| 1 | import hachoir_core.error | ||
| 2 | import hachoir_core.cmd_line | ||
| 3 | import hachoir_parser | ||
| 4 | import hachoir_metadata | ||
| 5 | import sys | ||
| 6 | import mat | ||
| 7 | |||
| 8 | |||
| 9 | class JpegStripper(file): | ||
| 10 | def checkField(self, field): | ||
| 11 | print(field.description) | ||
| 12 | if field.name.startswith("comment"): | ||
| 13 | return True | ||
| 14 | return field.name in ("photoshop", "exif", "adobe") | ||
| 15 | return False | ||
| 16 | |||
| 17 | |||
