diff options
| author | jvoisin | 2011-07-21 21:36:24 +0200 |
|---|---|---|
| committer | jvoisin | 2011-07-21 21:36:24 +0200 |
| commit | ebc4b477e5dc5e80e73644ca855eb37767afdcdd (patch) | |
| tree | ad0d7d6a85c67bfedafee2b33eb5ca7afddfe328 | |
| parent | bb83090afcd12893c301ef14869e84beda43ccb9 (diff) | |
Add support for Bmp files ;)
| -rw-r--r-- | lib/images.py | 4 | ||||
| -rw-r--r-- | lib/mat.py | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/images.py b/lib/images.py index 76696fd..4441b70 100644 --- a/lib/images.py +++ b/lib/images.py | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | import parser | 1 | import parser |
| 2 | 2 | ||
| 3 | class BmpStripper(parser.Generic_parser): | ||
| 4 | def _should_remove(self, field): | ||
| 5 | return False | ||
| 6 | |||
| 3 | class JpegStripper(parser.Generic_parser): | 7 | class JpegStripper(parser.Generic_parser): |
| 4 | def _should_remove(self, field): | 8 | def _should_remove(self, field): |
| 5 | if field.name.startswith('comment'): | 9 | if field.name.startswith('comment'): |
| @@ -27,6 +27,7 @@ logging.basicConfig(level = LOGGING_LEVEL) | |||
| 27 | strippers = { | 27 | strippers = { |
| 28 | hachoir_parser.image.JpegFile: images.JpegStripper, | 28 | hachoir_parser.image.JpegFile: images.JpegStripper, |
| 29 | hachoir_parser.image.PngFile: images.PngStripper, | 29 | hachoir_parser.image.PngFile: images.PngStripper, |
| 30 | hachoir_parser.image.bmp.BmpFile: images.BmpStripper, | ||
| 30 | hachoir_parser.audio.MpegAudioFile: audio.MpegAudioStripper, | 31 | hachoir_parser.audio.MpegAudioFile: audio.MpegAudioStripper, |
| 31 | hachoir_parser.misc.PDFDocument: misc.PdfStripper, | 32 | hachoir_parser.misc.PDFDocument: misc.PdfStripper, |
| 32 | hachoir_parser.archive.TarFile: archive.TarStripper, | 33 | hachoir_parser.archive.TarFile: archive.TarStripper, |
