From 52f2fedd5d73807d42ba5c397c3e4c5348b47a47 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 20 Jun 2011 01:25:33 +0200 Subject: Introduction of a nice separation of functions/class in differents files --- lib/images.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lib/images.py (limited to 'lib/images.py') diff --git a/lib/images.py b/lib/images.py new file mode 100644 index 0000000..21229c2 --- /dev/null +++ b/lib/images.py @@ -0,0 +1,17 @@ +import parser + +class JpegStripper(parser.Generic_parser): + def _should_remove(self, field): + if field.name.startswith('comment'): + return True + elif field.name in ("photoshop", "exif", "adobe"): + return True + else: + return False + +class PngStripper(parser.Generic_parser): + def _should_remove(self, field): + if field.name in ('comment'): + return True + else: + return False -- cgit v1.3